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://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Configuration-Binding
반응형