spring framework - @Value 가 동작하지 않는다면
2022.02.13
환경 : java, springframework 코드 @Component public class TestBean { @Value("${test}") private String test; private String defaultTestValue = getTest(); public TestBean() { System.out.println("Constructor test = " + test); System.out.println("Constructor defaultTestValue = " + defaultTestValue); } @PostConstruct public void init() { System.out.println("PostConstruct test = " + test); System.out.prin..