개발/Spring Framework
@Value
멋진놈
2022. 11. 25. 13:24
728x90
resource에 원하는 jdbc.properties(x.properties)를 설정하고
그 안에
jdbc.test=TEST를 입력후
값을 불러오기 원하는 부분에 @Value("${jdbc.test}");
private String test;
하면 test = TEST 값을 지정한다.