The @Value annotation is not fetching data from application.properties
Please check the code in the below repository
https://github.com/dev1ad/props
The @Value in WebController works whereas the @Value in ManualClass does not work!! Not sure why it is not working.
You are manually instantiating the ManualClass
in your WebController
line 17, you need to have the ManualClass
be injected by spring and it should have the property value filled in automatically.