![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
文章平均质量分 86
maple 枫
Everything has to be perfect.
展开
-
如何实现自己的spring boot starter(二)
我们在SpringBoot中使用redis的时候,直接引用 spring-boot-starter-data-redis 的pom,然后配置spring.redis.host = localhostspring.redis.port = 6379spring.redis.password = 123456就可以使用在我们的业务系统里注入redisTemplate来操作redis了,但是他是怎么工作的呢?让我们走进SpringBoot的源码,看几张截图:在 spring-boot-a原创 2021-10-14 14:46:04 · 304 阅读 · 3 评论 -
如何实现自己的spring boot starter(一)
目录背景:客户端 my-spring-boot-starter-client:POMHelloWorldPropertiesHelloWorldAutoConfigurationHelloWorldMETA-INF:服务端:my-spring-boot-starter-consumerPOM:application.propertiesTestController测试:客户端打jar包服务端引用坐标启动服务端,请求localhost:80...原创 2021-10-07 20:00:02 · 289 阅读 · 0 评论