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; }}
Are there any code examples left?
New code examples in category Java