| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- boot
- 자바
- RCP
- 맛집
- 알고리즘
- Web
- elasticsearch
- java8
- MySQL
- 백준
- javascript
- Spring
- JPA
- java
- effective
- 이펙티브
- 자바스크립트
- 독후감
- jface
- kibana
- 엘라스틱서치
- Spring Boot
- 스프링
- nodejs
- error
- 인터페이스
- node
- Git
- 후기
- 리뷰
Archives
- Today
- Total
목록param (1)
wedul
beta에는 restdocs를 만들어서 static/index.html에 위치시키고 싶었고 운영에 경우에는 이로직을 빼고 싶었다.그러기 위해서는 build시점에 profile을 전달받아야했고 그것에 따라서 로직 분리가 필요했다. 그러기 위해서는 ./gradlew build 시 param으로 값을 전달하고 그 전달한 값을 사용하여 빌드 로직을 분리해야했다. 우선 build를 할 build.gradle에 argument를 받는코드와 분기로직을 작성했다.bootJar { enabled = true String activeProfile = project.findProperty('profiles') ?: '' println "zone: $activeProfile" if (activeProfi..
web
2024. 5. 7. 10:51
