fengwenyi / study-custom-spring-boot-starter

Study Custom Spring Boot Starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Study Custom Spring Boot Starter

依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <optional>true</optional>
</dependency>

第一步,编写 xxx.factories

resources 下创建 META-INF/spring.factories

原理:

第二步,编写 xxxProperties.java

第三步,编写 xxxAutoConfiguration.java

About

Study Custom Spring Boot Starter


Languages

Language:Java 100.0%