可以使用 properties 文件、YAML 文件进行配置,放入resources目录下
1.application.properties
environments.dev.url=http://dev.example.com
environments.dev.name=Developer Setup
environments.prod.url=http://another.example.com
environments.prod.name=My Cool App
2.application.yml
environments:
dev:
url: http://dev.example.com
name: Developer Setup
prod:
url: http://another.example.com
name: My Cool App
标签:http,name,配置文件,url,dev,environments,com
From: https://www.cnblogs.com/lwx11111/p/16730459.html