본문 바로가기

개발 메모장

검색하기
개발 메모장
프로필사진 Delon

  • 분류 전체보기 (13)
    • Server (5)
    • Python (0)
    • Linux (3)
    • BigData (0)
    • IT 기타 (5)
    • Android (0)
    • IOS (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • spring constant
  • docker
  • spring boot
  • ionic
  • Rest
  • eureka
  • yml 여러개
  • spring boot rest api
  • 아이오닉
  • api 서버
  • 도커 설치
  • multiple yml
  • docker isntall
  • github
  • Service Discovery
  • Spring
  • yml constant
  • datasource
  • 16.04
  • 도커
  • CORS
  • git
  • mariadb
  • 아이오닉 설치
  • Service Registry
  • ionic install
  • MSA
  • Spring cloud
  • 다중 yml
  • gitlab
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록다중 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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바