Spring Cloud 使用 Consul 作为配置中心
September 20, 2020 · 696 words · 4 min
Spring Cloud 使用 Consul 作为配置中心 加载配置 加载配置是通过 ConsulPropertySourceLocator 来实现的, …
September 20, 2020 · 696 words · 4 min
Spring Cloud 使用 Consul 作为配置中心 加载配置 加载配置是通过 ConsulPropertySourceLocator 来实现的, …
September 20, 2020 · 992 words · 5 min
Spring Cloud 使用 Kubernetes 作为配置中心 Spring Cloud 支持使用 Kubernetes 作为配置中心,通过 ConfigMap 或 Secret,将配置添加到应用 …
September 20, 2020 · 666 words · 4 min
Spring Cloud Consul 服务注册和发现 Spring Cloud Kubernetes 使用, …
September 20, 2020 · 750 words · 4 min
Spring Cloud Kubernetes 服务注册和发现 Spring Cloud Kubernetes 使用, …
September 20, 2020 · 323 words · 2 min
Spring Cloud Gateway 使用 Kubernetes 作为服务发现 Spring Cloud Gateway 作为网关,通过用于执行一些通用逻辑后做请求转发,后端可能涉及到多个服务,每 …
September 20, 2020 · 69 words · One minute
Spring Cloud Gateway 使用 Kubernetes 实现负载均衡 在使用 Spring Cloud Gateway 作为服务服务发现时,可能会遇到 Gateway 并没有部署在服务所 …
September 8, 2019 · 417 words · 2 min
Spring Boot 中使用Spring Cloud Stream Spring Cloud Stream 用于构建高可扩展的使用消息系统连接的事件驱动服务的框架 Binder: 负责提供与外部消息 …
September 8, 2019 · 399 words · 2 min
Spring Boot 中使用 WebSocket WebSocket 是一种长连接技术,可以实现服务端和客户端的双向通信,服务端可以主动推送信息给客户端 构建应用 添加依赖 build.gradle …
September 8, 2019 · 252 words · 2 min
Spring Boot 中自定义接口返回格式 Spring Boot 项目中提供的 REST 接口往往需要封装状态或者其他附加的内容返回给客户端,如果每个接口都用一些工具类来处理很繁琐,会增加很多重复 …
March 29, 2019 · 1277 words · 6 min
MyBatis 查询错误:java.lang.IllegalArgumentException: invalid comparison: java.util.Date and …
December 31, 2018 · 352 words · 2 min
Spring Boot 配置 HTTPS 访问 相关代码 生成证书 创建新证书 keytool -genkeypair -alias hellowood -keyalg RSA -keysize …
December 24, 2018 · 165 words · One minute
SpringBoot 中 Spring Security 403 自定义返回消息 自定义处理类 CustomAccessDeniedHandler import …
August 25, 2018 · 63 words · One minute
Java 中计算字符串表达式的值 在 Java 中计算字符串数值表达式可以用 javax.script.ScriptEngine#eval(java.lang.String), …
July 16, 2018 · 230 words · 2 min
使用 Jib 生成 Java Docker 镜像 Jib 是谷歌最新开源的 Java 应用的 Docker 镜像生成工具,可以通过 Gradle 或 Maven …
April 10, 2018 · 78 words · One minute
SpringBoot 使用 FastJSON 自定义接口返回 JSON 格式 在 SpringBoot 中如果想要自定义接口返回的值格式,可以通过重写 WebMvcConfigurerAdapter …
April 8, 2018 · 121 words · One minute
用 Docker 构建 SpringBoot 应用 启动 Docker,并生成 SpringBoot 应用 修改 build.gradle 文件 buildscript { ext { …
April 8, 2018 · 435 words · 3 min
SpringBoot 使用 MyBatis 通用 Mapper 通用 Mapper 是一个开源的 MyBatis 插件,该插件可以使用通用的 MyBatis方法,减少简单的 CRUD,提高开发效率;推 …
April 8, 2018 · 274 words · 2 min
SpringBoot 使用 Spring Session 实现 Session 共享 通过 Redis 共享 配置 配置并启动 Redis 添加依赖 dependencies { …
February 12, 2018 · 1350 words · 7 min
SpringBoot 使用QuartzJob实现任务控制 项目地 …