gradle 빌드 환경에서 profile 적용하기
java -jar 이런걸로 실행시키면 문제될게 없지만gradle의 bootRun task를 사용할때 스프링 프로파일 적용 방법입니다build.gradle에 아래와 같이 설정 추가하면 됩니다. build.gradlebootRun { String activeProfile = System.properties['spring.profiles.active'] systemProperty "spring.profiles.active", activeProfile } DockerfileENTRYPOINT ["./gradlew"] CMD ["bootRun", "-Dspring.profiles.active=prod"]
개발
2018. 10. 17. 13:43
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- ls
- oracle
- resttemplate
- maven
- Build
- 합정
- 도커
- boot
- java
- vrapper
- properties
- Kotlin
- 코틀린
- Access
- vim
- Tomcat
- docker
- Spring
- jQuery
- Eclipse
- Database
- Profile
- Shell
- mybatis
- 톰캣
- Linux
- vi
- grant
- 맛집
- IntelliJ
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
글 보관함
