spring boot 使用外部配置文件

1、springboot 启动时加载  application.properties的优先级java 1.当前目录的./config目录spring 2.当前目录springboot 3. classpath /config packageapp 4.The classpath rootspa 2、配置实践code        通常状况下把application.properties放在当前路径
相关文章
相关标签/搜索