SheppardDigital
asked on
Spring Boot, accessing application.properties inside your own class
I have a spring boot web mvc application which uses an application.properties file.
I can access properties fine if the class accessing the properties was created by Spring, however I have a class of my own which I would like to access some setting in, however I can't figure out how to do this. I've tried using @Value, but sadly this doesn't work.
I can access properties fine if the class accessing the properties was created by Spring, however I have a class of my own which I would like to access some setting in, however I can't figure out how to do this. I've tried using @Value, but sadly this doesn't work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.