Join GitHub today
Spring Boot support: use annotation processor org.springframework.boot.autoconfigureprocessor.AutoConfigureAnnotationProcessor in builds #377
It seems Spring Cloud is currently not using above AP which generates additional metadata in
This information can be used both by Spring Boot to avoid classloading on startup by reading this metadata instead of loading/inspecting annotations of all autoconfiguration classes.
Given the large total # of autoconfiguration classes across all Spring Cloud -* projects, this seems a worthwhile step to improve performance.
PS: I'm unsure whether this is the correct subproject, but obviously it should be applied across all Spring Cloud projects providing autoconfiguration classes.
referenced this issue
Jun 5, 2018
Sounds like we just need to add
to our POMs
@ryanjbaxter that's the annotation processor generating configuration keys metadata. What @YannCebron means is the annotation processor that generates metadata on auto-configuration so that we don't have to load/parse the class at runtime.
The correct dependency is
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-autoconfigure-processor</artifactId> <optional>true</optional> </dependency>
It should be added in any project that has a
No, it will generate metadata for the