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
- gitlab
- spring constant
- mariadb
- datasource
- eureka
- Service Registry
- Rest
- github
- docker
- 도커
- 16.04
- ionic
- spring boot rest api
- Service Discovery
- 다중 yml
- ionic install
- multiple yml
- Spring
- docker isntall
- spring boot
- MSA
- api 서버
- yml 여러개
- 도커 설치
- 아이오닉
- git
- CORS
- 아이오닉 설치
- Spring cloud
- yml constant
Archives
- Today
- Total
목록다중 yml (1)
개발 메모장
[Spring] Multiple YML(Constants) 파일 관리
현재 많은 프로젝트들을 환경값을 application.properties 파일에서 application.yml파일로 관리를 하고 있다. 이렇게 되면서 Constants 역시 기존에는 class파일에서 yml파일로 관리를 하는 경우가 생겼고, application.yml에서 물론 전부 관리할 수 있지만 별도의 yml파일로 분리하여 관리하여할 경우가 있어서, 해당 방법을 알아보자 기존의 application.yml은 @Configuration public class CustomConfig { public CustomConfig(@Value("${info.name}") String name){ //use Your Constants } } 이와 같은 방식으로 사용할 수 있었다. 1. resoures/consta..
Server
2020. 8. 9. 23:14