![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
06-spring boot in action
文思源想
知道越多不知道的就越多,能力越大责任就越大!
展开
-
Spring Cloud Tencent和alibaba备忘
spring cloud tencent 和 alibaba备忘规则路由就近路由服务限流(Spring Cloud Tencent Polaris Ratelimit)服务熔断(Spring Cloud Tencent Polaris Circuitbreaker)https://xie.原创 2022-07-26 09:42:21 · 1379 阅读 · 0 评论 -
webflux rest及websocket添加ssl支持
1 Webflux webclient添加sslRest client的相关ssl配置如下所示:@Beanpublic WebClient createWebClient() throws SSLException { SslContext sslContext = SslContextBuilder .forClient() .trustManager(InsecureTrustManagerFactory.INSTANCE)原创 2020-11-22 20:25:30 · 772 阅读 · 0 评论 -
spring自动配置使用介绍
1 spring 自动配置参考01-@Value注解作用02-@ConfigurationProperties使用方法03-@ConfigurationProperties不生效问题探究2 spring boot自动配置-@ConfigurationProperties@ConfigurationProperties注解较为简单,不需要为每个变脸单独添加@Value注解指定位置,添加prefix前缀后,spring将自动到配置文件中读取相关前缀属性。配置类的使用可以直接通过@Autowired原创 2020-11-17 20:32:24 · 663 阅读 · 0 评论 -
03-spring-boot-resttemplate httpcomponents定制
03-spring-resttemplate httpcomponents定制本文主要介绍使用Apache httpcomponents的httpclient替换掉原始spring-boot的client的使用示例,并针对主要初始化及调用栈给出artha分析堆栈,方便后续进一步分析spring boot的初始化工作。1 依赖梳理maven依赖<dependency> <groupId>org.apache.httpcomponents</groupId>原创 2020-10-25 22:28:06 · 340 阅读 · 0 评论 -
04-spring-boot-resttemplate netty定制使用
04-spring-boot-resttemplate netty定制使用rest template可以使用netty定制的工厂类-Netty4ClientHttpRequestFactory,完成相关rest接口访问工作,由于上一节已经大致介绍了相关rest template的使用,本文的重点放在替换的处理要点盘点以及Netty4ClientHttpRequestFactory的实现讨论上。1 核心依赖 implementation 'org.springframework.boot:spri原创 2020-10-24 21:57:21 · 1393 阅读 · 1 评论 -
02-Spring REST Template教程02
02-Spring REST Template教程02说明:本文主要整理了spring-boot中rest template的使用方法,通过对 依赖、生产、主要方法的简要介绍,读者可以较快掌握Spring Boot Rest客户端的简单编码,文章也针对实际代码编写过程中的一些进阶要求,做了简要说明,这里包括:泛型对象转换、复杂对象序列化及反序列化定制、依赖其他库、链接复用、优化策略。代码学习仓库如下所示:1 gradle依赖spring-boot-starter-web依赖中已经包含了REST Te原创 2020-10-23 22:40:17 · 432 阅读 · 0 评论