Spring Boot Config File Placement Issue

Spent 10 minutes wondering why my Spring Boot application was ignoring my config file. The code looked fine. The properties were correct. But the app kept using default values. No errors. No warnings. Just silence. The problem: The config file was placed in the wrong folder. I had it in src/main/resources/config instead of src/main/resources. The fix: Move the file to src/main/resources. One folder. That was it. Spring Boot does not warn you when it cannot find your config file. It just uses defaults and moves on. What config file issue has caught you off guard? #Java #SpringBoot #Debugging #BackendDevelopment

This one is easy to miss because the app still starts without errors. Now I always double check the file location first when properties are not loading.

Like
Reply

To view or add a comment, sign in

Explore content categories