Error while upgrading Springboot microservice from 2.x to 3.x – classes could not be excluded because they are not auto-configuration classes
While trying to upgrade Springboot from 2.7.18 to 3.0.0 (along with Java 17), I’m getting the following error at runtime while starting the application. Build is successful though.
Auto Enable Spring-Boot Core/Base Project without ComponentScan
I have two projects. First one is main-app, second-one is base-app. I try to include second-app in main-app. Normally, I can handle it easily with using ComponentScan("com.example.base")
but I’m looking for an alternative for it, such as spring.factories
Do you have any suggestion?
Auto Enable Spring-Boot Core/Base Project without ComponentScan
I have two projects. First one is main-app, second-one is base-app. I try to include second-app in main-app. Normally, I can handle it easily with using ComponentScan("com.example.base")
but I’m looking for an alternative for it, such as spring.factories
Do you have any suggestion?