• HOME
  • SEARCH
  • TOPICS
  • DATA

  • Linux 快速创建大文件

    fallocate 直接分配一个指定容量的真实文件,创建速度很快。 -l,默认单位为字节。也可后跟k、m、g、t、p、e来指定单位,分别代表KB、MB、GB、T

    2023-07-21, Views: 1401 , Topics: Linux

  • Maven 引用 Spring Boot Snapshot 和 Milestone 仓库

    需求 为了试验Spring Boot的新功能,需要拉取Spring Boot的Snapshot版本和Milestone版本。 pom.xml 在工程目录的pom

    2023-07-20, Views: 2891 , Topics: Spring Boot Maven

  • Spring Boot 3.2 RestClient 同步 HTTP 客户端

    HTTP 客户端 Spring 5.0提供了WebClient基于Spring WebFlux的异步HTTP客户端。 Spring 6.1提供了RestClie

    2023-07-19, Views: 1372 , Topics: Spring Boot HTTP

  • Spring Boot Callable 异步接口服务端超时后是否会继续执行业务逻辑

    Controller 代码 使用了Callable作为返回值,Spring Boot会当作异步接口来处理。 @GetMapping("/timeout") pu

    2023-07-18, Views: 1142 , Topics: Spring Boot juc

  • Spring Boot 设置 Controller 处理超时时间

    同步接口 对于同步接口,Spring Boot并不支持服务端的超时时间。(即:客户端不中断请求的情况下将无限制等待服务端返回信息) 而server.tomcat

    2023-07-17, Views: 4471 , Topics: Spring Boot Tomcat

  • Spring Boot zalando logbook 过滤不打印指定请求

    需求 zalando logbook会打印很多prometheus收集监控数据的HTTP请求数据。 如:/actuator/prometheus、/actuat

    2023-07-14, Views: 969 , Topics: Spring Boot

  • Spring Boot Tomcat 报错 The valid characters are defined in RFC 7230 and RFC 3986

    错误信息 java.lang.IllegalArgumentException: Invalid character found in the request

    2023-07-13, Views: 1735 , Topics: Spring Boot Tomcat

  • Spring Boot OpenFeign 动态切换 Url 报错解决方法

    错误信息 No Feign Client for loadBalancing defined. Did you forget to include sprin

    2023-07-12, Views: 2782 , Topics: Spring Boot OpenFeign

  • Spring Boot OpenFeign 发送 form-url-encoded 表单数据

    代码 注意:Map中的value泛型必须是?(即:Map<String, ?>),否则会带上modCount、table这些Map的字段。 @Fei

    2023-07-11, Views: 1531 , Topics: Spring Boot OpenFeign

  • Spring Boot 返回值额外增加了一些字段

    现象 状态码为:200。 在统一的返回值后面,又额外加了timestamp、status、error、path字段。 { "code": "0",

    2023-07-10, Views: 1430 , Topics: Spring Boot

  • Spring Boot 移除错误页面 /error 节点

    需求 移除Spring Boot默认的错误页面。 方法一:移除错误页面 配置了server.error.whitelabel.enable为false,只是禁用

    2023-07-07, Views: 1945 , Topics: Spring Boot

  • Spring 循环依赖:本地不报错,线上却报错

    现象 本地启动Spring Boot时,没有报循环依赖错误,程序正常启动。 线上环境报循环依赖错误,程序无法启动。 原因 不同的操作系统,bean的加载顺序是不

    2023-07-06, Views: 2509 , Topics: Spring

  • Kubernetes 查看容器进程使用内存情况

    Node 节点查看 如果有权限访问Node节点,可以在Node节点上执行docker top {containerId}。但只能查看运行的进程。 Kuberne

    2023-07-05, Views: 2026 , Topics: Kubernetes

  • SonarQube Java 单元测试覆盖率为零解决方法

    现象 在IDEA中使用Run with Coverage能显示覆盖率。 但SonarQube中一直显示覆盖率为0。 解决方法 对于Maven构建的项目,添加ja

    2023-07-04, Views: 3467 , Topics: SonarQube Java

  • Java jstat 查看类加载、卸载情况

    命令 jstat -class 1 输出 bash-4.4# jstat -class 1 Loaded Bytes Unloaded Bytes

    2023-07-03, Views: 1117 , Topics: Java jstat

  • Java VisualVM 排查内存泄漏

    深堆大小 右下角Dominators by Retained Size中,点击Compute Retained Sizes计算深堆大小,才能查看到具体引用的类和

    2023-06-30, Views: 2052 , Topics: Java VisualVM

  • Java jcmd 报 AttachNotSupportedException: Unable to open socket file

    错误信息 com.sun.tools.attach.AttachNotSupportedException: Unable to open socket fil

    2023-06-29, Views: 2674 , Topics: Java jcmd jhsdb

  • Java 无法 debug Finalizer 类

    需求 看一下Finalizer如何被初始化,以及完整调用链路。 无法 debug 原因 Finalizer在JVM启动时就已经加载,即:还没加载到我们自己写的m

    2023-06-28, Views: 807 , Topics: Java

  • Java jps 无法显示进程 id

    现象 Linux上使用jps查看进程id,无法显示运行的Java进程。 命令原理 jps、jstack、jcmd等命令默认查看的是/tmp/hsperfdata

    2023-06-27, Views: 1907 , Topics: Java jps

  • Java jmap 强制 attach 到 JVM 报错

    现象 使用jmap -F导出堆栈信息,抛出以下错误: Error: -F option used Cannot connect to core dump or

    2023-06-26, Views: 2614 , Topics: Java jhsdb

  • First Prev
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • Next Last

©2025 沪ICP备18012661号-1 阿里云

Messages Sitemap GitHub