1. Problem recurrence
When starting the SpringBoot project in idea, the following error occurred: (translation: XXX file cannot be read in XXX package)
Two, the cause of the problem
This configuration file was scanned when the project was started, but it was not found.
My project was able to run normally. For some reason, I moved one of the packages to another module. After finding the problem, I restored it back. When I started the project, I scanned the package and an error occurred.
Three, the solution
Double-click shift in the project, search for spring.factories, open the module that you failed to start, modify the following configuration information: change to the file path that can be scanned, and restart the project.