앱)java spring application config properties 방식

Posted by HULIA(휴리아)
2018. 11. 14. 19:47 백엔드개발/자바스프링
*.java
@Value("#{api['server.brCode']}")
private String api


*.properties
server.brCode=KKKK


applicationContext.xml
xmlns:utill="http:www.springframework.org/schema/util"
http:www.springframework.org/schema/util/spring-util.xsd"


<util:properites id="api" location="file:${home.dir}/api${server.type}.properties />