创建自定义springboot的starter
springboot自定义starter 完整的springboot starter包含两个组件 autoconfigure 这里包含自动配置的代码 starter 依赖,或者依赖的其他springboot starter组件 自定义starter的命名 一般来说,自动装配的配置文件都是以xxxx-spring-boot-autoconfigur starter模块的命名为xxxx-spring-boot-starter 开始自定义starter 创建工程 这是工程的目录结构 pom文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring