magic-core-auto 借鉴了 春哥 的 mica-auto,是 magic-starter 的一个基础组件,通过扫描 @Component、@Configuration 等注解,用自动生成 Spring Boot Starter 的一些基础配置,包括 spring.factories、spring-autoconfigure-metadata.properties、spring-configuration-metadata.json、spring-devtools.properties 等文件的自动生成。
注意:如果你项目中使用了
Lombok请将magic-auto的依赖放置到Lombok后面。
<dependency>
<groupId>com.xkcoding</groupId>
<artifactId>magic-core-auto</artifactId>
<version>${magic-starter.version}</version>
<scope>provided</scope>
</dependency>- mica-atuo:https://github.com/lets-mica/mica-auto
- Google Auto: https://github.com/google/auto
- Spring 5 - spring-context-indexer:https://github.com/spring-projects/spring-framework/tree/master/spring-context-indexer
