yeollow / return-home-safely

Apache License 2.0
1 stars 0 forks source link

Spring profile 등록 #3

Closed yeollow closed 3 years ago

yeollow commented 3 years ago

Spring profile 등록

개발 환경에 따라 설정값을 달리 해야 할 필요가 있을 때, Spring Boot에서는 profile로 취급한다.

application-{phase}.yml을 다르게 지정함으로써 아래와 같이 gradle을 통한 springBoot실행 시 active profile을 지정할 수 있음. gradle :api:bootRun -Dspring.profiles.active={phase}