随笔分类 - springboot
摘要:Runner启动器 如果你想在Spring Boot启动的时候运行一些特定的代码,你可以实现接口 ApplicationRunner或者 CommandLineRunner,这两个接口实现方式一样,它们都只提供了一个run方法。 CommandLineRunner:启动获取命令行参数。 public
阅读全文
摘要:Spring Boot 2.x 启动全过程源码分析(上) Spring Boot 2.x 启动全过程源码分析(下)
阅读全文
摘要:Spring Boot的自动配置注解是@EnableAutoConfiguration, 从上面的@Import的类可以找到下面自动加载自动配置的映射。 /** * Load the fully qualified class names of factory implementations of
阅读全文