This is my project structure.
This is the class to get the values of the application.properties. Note that I have commented @value because it works with that annotation.
In this class I configure the connections to mongo. In the system.out.print comes null.
This is my application.properties