跳至主要內容

自定义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
上次编辑于:
贡献者: 李元昊