![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 77
向着风奔跑
在oppo互联网服务
展开
-
spring-boot-starter自定义
Spring boot starter 组件有两种方式 @EnableXX 和 autoconfigure 通过spring的spi加载对于官方组件,是基于condition条件来决定对于类是否要自动装配,对于第三方组件,是采用spi机制来实现扩展命名规则官方命名规则 spring-boot-starter-xxx 参考 https://github.com/spring-projects/spring-boot/tree/main/spring-boot-project/spring-boot-s原创 2022-01-18 10:51:45 · 385 阅读 · 0 评论 -
spring boot test启动过程
加载Spring的上下文启动流程https://www.processon.com/embed/61cd2436e401fd7a538b36a7解析:@SpringBootTest标记了junit5的注解@ExtendWith(SpringExtension.class)SpringExtension实现了junit5的test的生命周期的钩子函数,如BeforeAllCallback,TestInstancePostProcessor,BeforeEachCallback在juni原创 2022-01-18 10:37:37 · 1928 阅读 · 0 评论 -
Spring5新特性
Spring5新特性运行环境Spring 5.0正常运行时,需要以下环境:整个Spring框架的代码基于JDK 8开发。当读者选择升级Spring框架时,需要先确认已经安装了JDK 8及以上的JDK版本,否则Spring 5.0将不能正常运行。Spring 5.0通过使用泛型推断和lambda表达式等特性提高了代码的可阅读性。支持使用Java 8编程。支持JDK 9开发部署。整个S...原创 2020-02-16 19:43:40 · 773 阅读 · 0 评论