# spring-boot-start-custom **Repository Path**: wangyalei/spring-boot-start-custom ## Basic Information - **Project Name**: spring-boot-start-custom - **Description**: 【SpringBoot】自定义starter - **Primary Language**: Java - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-06-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-boot-start-custom #### 介绍 【SpringBoot】自定义starter #### 命名规范 1. 官方命名空间(Springboot旗下项目) - 前缀:spring-boot-starter- - 模式:spring-boot-starter-{模块名} - 举例:spring-boot-starter-web、spring-boot-starter-jdbc 2. 自定义命名空间(非Springboot项目) - 后缀:-spring-boot-starter - 模式:{模块}-spring-boot-starter - 举例:mybatis-spring-boot-starter #### 必须引入的依赖包 starter模式和以前的jar包模式的区别是配置装配能力,也就是starter包可以自动从配置文件获取项目本身的配置参数,从而更灵活的适应项目个性,那么就必须依赖这个包。 org.springframework.boot spring-boot-configuration-processor #### 指定启动项(配置spring.factories,指明starter的主入口) 在resources目录下建META-INF目录,创建spinrg.factories文件,文件内容如下: org.springframework.boot.autoconfigure.EnableAutoConfiguration= 自己的启动配置类(可以多个)