카테고리 없음2019. 5. 15. 12:05

Spring list configuration 등록

# application.yml

test:
  module:
    host-list:
      - "100.10.10.100:3000"
      - "100.10.10.101:3001"


# Override parameters

test.module.host.list = "100.10.10.100:3000", "100.10.10.101:3001"

 

참고

https://stackoverflow.com/questions/28158732/spring-boot-how-to-override-properties-with-dash-on-linux-env-profile

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Configuration-Binding

반응형
Posted by ITBJ