springBoot cannot scan the configuration class annotated with @Configuration

Recently, I encountered a problem in the process of building the springBoot project. The configuration class annotated with @Configuration cannot take effect. Later, I found out that the startup class and the config package should be in the same level directory. The effect is as follows:

Change it to the following path:

 

                                

It will take effect after restarting.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326890996&siteId=291194637