Spring boot jar 외부 프로퍼티 사용

사랑동이·2021년 10월 25일
0
  1. 같은 경로에 있을경우 application.(property|yml)파일 자동인식 ( 증분형 )
  2. jar 실행시 파라미터를 추가 하면된다. (spring boot 2.40부터라고 함)
java -jar springboot.jar --spring.config.import=optional:additional.properties

출처 url
https://www.baeldung.com/spring-properties-file-outside-jar

0개의 댓글