I encountered a similar issue in Spring 4.2.8. When I created the project, the resources folder was missing. I manually added it inside src/main, and after that, everything worked fine. However, I'm not sure why the file wasn’t being detected initially, even though it was in the classpath. Any ideas on what might have caused this?