0

I've created a Spring Boot Starter project using start.spring.io picking the latest (3.0.1 as of this writing) and added org.kie:kie-server-spring-boot-starter-optaplanner:7.73.0.Final as a dependency. This brings along with it several autconfiguration classes (e.g. OptaPlannerKieServerAutoConfiguration.class) in various JARs each having their own META-INF/spring.factories file with what seems to be correct entries for org.springframework.boot.autoconfigure.EnableAutoConfiguration (pointing to the Configuration class).

In the application.properties file in src/main/resources/, I've placed various entries like kieserver.optaplanner.enabled=true, etc.

For some reason, it doesn't appear as if the autoconfiguration classes are being recognized. I'm running the Spring Boot application with debug=true and in the output of UserDetailsServiceAutoConfiguration, I'm not seeing any of the autoconfiguration classes for any of the KIE packages being mentioned.

I tried creating a JUnit test class and forced the loading of the configuration class with ApplicationContextRunner and that seemed to work.

What am I missing in the app to get Spring to pick up the autoconfiguration classes?

Richard Plana
  • 121
  • 2
  • 2
  • 4

0 Answers0