如何编写自动配置 模式: 启动器只用来做依赖导入; 专门来写一个自动配置模块; 启动器依赖自动配置;别人只需要引入启动器(starter) mybatis-spring-boot-starter;自定义启动器名-spring-boot-starter 步骤 1)、启动器模块2)、自动配置模块HelloProperties:HelloService:HelloServiceAutoConfiguration: 相关文章: 2021-03-30 2021-04-22 2021-11-04 2021-11-29 2021-10-17