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.