config.properties 사용법


config.properties 사용법

config.properties 사용법 < config.properties 사용이유 > 실제 서버에 반영 할때 config.properties 안에있는 내용만 수정하면 컴파일을 다시 안해도 서버에 반영 할 수 있음 고정값을 파일에 설정해놓고 편하게 수정 할 수 있음 < config.properties > 본인은 비즈뿌리오 솔루션 연동시에 테스트 핸드폰번호 (본인)와 테스트 유무를 config.properties 안에서 설정하여서 진행 biz.pri.phone = 01089488287 비즈뿌리오 테스트 인지 아닌지 Y면 test N면 실제 biz.pri.test = Y < VO.java > @Value("${biz.pri.phone}") // 테스트 핸드폰번호 private String testPhone; @Value("${biz.pri.test}") // 비즈뿌리오 테스트 인지 아닌지 Y면 test N면 실제 private String testYN; < service.java > @...


#Autowired #config #configproperties #properties #properties사용법 #value

원문링크 : config.properties 사용법