• HOME
  • SEARCH
  • TOPICS
  • DATA

  • Spring OpenFegin 实现微服务间 RPC 调用

    添加依赖 Spring Boot 2.6.7、openfeign 3.1.2 <parent> <groupId>org.spr

    2022-10-05, Views: 2108 , Topics: OpenFeign Spring Boot

  • Spring Boot 配置异步任务、定时任务、Tomcat 的线程池参数

    异步任务 spring: task: execution: thread-name-prefix: my-execution-

    2022-10-04, Views: 2995 , Topics: Spring Boot Tomcat

  • Spring Boot 配置文件中的默认值

    默认值 读取MY_SERVER_PORT、spring.application.name变量的值,如果没有设置,则使用冒号后面的值。 server: por

    2022-10-03, Views: 3246 , Topics: Spring Boot

  • Spring Boot Slf4j MDC 实现全链路日志追踪

    需求 请求进入容器后,注入特定的traceId,日志打印时能根据traceId关联到在Controller、Service、Repo层的日志。 Slf4j MD

    2022-10-01, Views: 2891 , Topics: Spring Boot logback

  • Spring 事务结束后进行耗时操作

    TransactionSynchronizationManager 使用TransactionSynchronizationManager类可以注册事务的事件监

    2022-10-01, Views: 2117 , Topics: Spring Spring Boot 事务

  • Spring Boot 整合 JWT JSON Web Token

    添加依赖 <dependency> <groupId>com.auth0</groupId> <art

    2022-09-30, Views: 1879 , Topics: Spring Boot JWT

  • Spring Boot 整合 Keycloak

    注意 如果Keycloak是以Docker方式启动,注意容器时区问题,创建容器时需指定,否则可能出现403错误。 可参考: -v /etc/localtime:

    2022-09-28, Views: 2033 , Topics: Spring Boot Keycloak

  • Spring Boot 实现 SSE 服务端推送事件

    SSE Sever Send Event,是HTTP协议中的一种,Content-Type为text/event-stream,能够保持长连接。 示例代码 Sp

    2022-09-28, Views: 11127 , Topics: Spring Boot HTTP SSE

  • Spring Boot Controller 路径匹配规则

    配置文件 path_pattern_parser是Spring5中有引入的路径匹配规则,专用于SpringMVC。 spring: mvc: pat

    2022-09-27, Views: 8399 , Topics: Spring Boot

  • Spring Boot 优雅停机

    添加配置 默认是immediate立即停止。 server: shutdown: graceful 设置优雅停机超时时间,默认是30秒。 spring:

    2022-09-26, Views: 2083 , Topics: Spring Boot Actuator

  • Spring Boot 使用 springdoc-openapi 接入 Swagger2

    添加依赖 <dependency> <groupId>org.springdoc</groupId> &lt

    2022-09-25, Views: 2679 , Topics: Spring Boot Swagger

  • Spring Boot 使用 springfox-boot-starter 接入 Swagger2

    添加依赖 <dependency> <groupId>io.springfox</groupId> <

    2022-09-24, Views: 3026 , Topics: Spring Boot Swagger

  • Spring Boot 动态修改日志级别

    需求 将com.example包下的日志级别调整至debug级别。 Arthas 方式 Arthas可以使用logger命令不停机动态调整日志级别。 可参考:A

    2022-09-23, Views: 1945 , Topics: Spring Boot Actuator logback

  • Spring Boot Starter Actuator 监控 Spring Boot 应用

    添加依赖 <dependency> <groupId>org.springframework.boot</groupId&

    2022-09-22, Views: 1752 , Topics: Spring Boot Actuator

  • Spring Boot jar 包执行报 no main manifest attribute 错误

    具体错误 在使用java -jar xxx.jar命令执行打包好的Spring Boot项目,无法运行,抛出以下错误: no main manifest att

    2022-09-21, Views: 4656 , Topics: Spring Boot Maven

  • Spring Boot 配置文件读取系统环境变量

    规则 使用下划线_代替点. 删除中划线- 转为大写 使用大写字母、数字、下划线组成的键,可以读取系统环境变量。 示例 spring.main.log-sta

    2022-09-19, Views: 4678 , Topics: Spring Boot

  • Spring Boot OpenFeign IllegalStateException: RequestParam.value() was empty on parameter 0

    错误信息 Caused by: java.lang.IllegalStateException: RequestParam.value() was empty

    2022-09-19, Views: 3239 , Topics: Spring Boot

  • Spring Boot 配置文件 YAML 共享变量

    共享变量 定义的配置,有多个地方需要使用,避免重复配置 锚点 & 和引用 * 锚点&定义变量,引用*使用变量。 案例 ${info.name}:

    2022-09-18, Views: 2155 , Topics: Spring Boot YAML

  • YAML | 竖线 > 大于号 - 减号等特殊符号的作用

    | 保留文本块中的换行符。 infoA: | this is my info my name is tom and I'm 18 输出JSON {

    2022-09-17, Views: 7610 , Topics: YAML

  • YAML 基础语法

    语法 大小写敏感 缩进表示层级关系 缩进只允许空格,不允许使用Tab #表示注释 使用双引号或者单引号包裹特殊字符 字符串可以拆成多行,每一行会被转化成一个空

    2022-09-16, Views: 1554 , Topics: YAML

  • First Prev
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • Next Last

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

Messages Sitemap GitHub