KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
It's not possible to use @Value on a static variable. @Value("${some.value}") static private int someValue; static public void useValue() { System.out.println(someValue); } When I do this, 0 is printed. So what is a good alternative to this?
Tags (comma-separated)
Save Edits
Cancel