public static fields in spring Service code example
Example: inject static field spring boot
@RestControllerpublic class PropertyController { @Value("${name}") private String name; private static String NAME_STATIC; @Value("${name}") public void setNameStatic(String name){ PropertyController.NAME_STATIC = name; }}