108_springboot指定配置文件运行,以及打包后运行时指定配置文件

1.springboot指定配置文件运行html 建立三个配置文件以下:java application.properties内容以下:spring spring.profiles.active=rabbit 如上配置,在运行时就会使用application-rabbit.properties配置文件运行,若是rabbit改为test,那么运行时就会使用application-test.prope
相关文章
相关标签/搜索