It's not possible to use @Value on a static variable.
@Value
@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?
0