Hi,
a SpringBoot application is ignoring a class annotated with @Configuration and I need shelp to understand how I can make SpringBoot
process this class and create beans inside it. Thank you!
Here is what I tried from what I found in the documentation and online and sample code:
- placed the class in the same package and in a subpackage called 'config'
- added the annotations which are below in the code (although SpringBoot should find it without any of these according to the
doc)
- imported annotation context in an context.xml file imported with @ImportResource
- added following additoinal dependecies to pom:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<!--
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure-processor -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure-processor</artifactId>
</dependency>
<!--
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
context.xml :