Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- ASUS 공유기
- 객체설계
- docker 네트워크
- 구글캘린더 검색
- Tomcat error-page version
- 프로젝트관리
- 실해하지 않는
- SW설계
- Data Transfer Object(DTO)
- LAN WAN
- Value Object(VO)
- open cursors
- USB-C to HDMI 아답터
- SI와 SM 차이점
- 네트워크 기본개념
- EXK
- 소프트웨어설계
- USB-C충전
- sonoff
- maven #junit
- LG그램2017
- 경력개발자
- SW분석
- angular 6
- tvheadend
- 자바스크립트 JQuery
- SpringBoot
- 자바개발
- CBD 단점
- 자바튜닝
Archives
- Today
- Total
대빵's Blog
springboot mvn 실행시 profile 파라미터 설정 본문
springboot 를 maven 으로 실행시키는 경우 configuration 의 profile 을 active 시키려면 아래와 같이 한다.
mvn spring-boot:run -Dspring-boot.run.profiles=프로파일명
또는
application.properties 에 아래와 같은 property 를 추가한다.
spring.profiles.active=프로파일명
인터넷 검색시 대부분에 문서들에
mvn spring-boot:run -Dspring.profiles.active=프로파일명 , 이런식으로 써있는데 이 방법은 정상작동하지 않았다.
아마 springboot maven plugin 버전이 올라가면서 방법이 변경된듯 하다.
참고
https://github.com/spring-projects/spring-boot/issues/1095
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/maven-plugin/examples/run-profiles.html
'개발관련' 카테고리의 다른 글
Spring Security + Angular 6 설정하기 (0) | 2018.09.26 |
---|---|
springboot commandline 한글(윈도우) 깨짐 해결 (0) | 2018.08.24 |
경력개발자 구두 면접하는 노하우 (0) | 2018.08.18 |
소프트웨어의 설계의 기본은 MECE 이다. (0) | 2018.04.14 |
높은 신뢰성 소프트웨어의 첫단추는 개발자의 신뢰성 이다. (0) | 2018.03.16 |