1. Make sure the folder has this logo
2. Make sure the pom.xml folder has this label (the function is to copy the required suffix name file in the configuration directory to the target)
src/main/java
**/*.properties
**/*.xml
false
(The following two situations are sometimes small bugs of IDEA)
3. Still unsuccessful when both 1 and 2 are guaranteed to be correct: Click Right toolbar Maven–>Lifecycle–>clean (clear target)–compile (recompile) and then run
4.Build->Rebuild Project (compulsory project compilation ) and run again
5. Manually copy and copy the file to be compiled to the location of the target
6.File—>Invalidate Caches /Restart…(invalid cache)—>Invalidate and Restart (clear the previous cache of idea, restart idea)