Does application.yml support environment variables?

前端 未结 2 1613
旧巷少年郎
旧巷少年郎 2021-01-30 10:04

I tried using env variables in my application.yml configration like:

spring:
  main:
    show_banner: false

---

spring:
  profiles: production
server:
  addres         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 10:34

    Try ${OPENSHIFT_DIY_PORT} (the usual Spring placeholder notation). See here for docs.

提交回复
热议问题