自定义SpringBoot Starter
小于 1 分钟
自定义SpringBoot Starter
以Springboot 3.x 为例
创建项目
项目名称:xxxx-springboot-starter 创建项目,选择SpringBoot 3.x
自动配置类
在resources下创建
- META-INF/spring.factories #SpringBoot2.7废止,SpringBoot3全面移除
- resources/META-INF/Spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
