springboot配置文件拆分

application.properties   默认取开发版本:

server.servlet.context-path=/springboot_day2
spring.main.lazy-initialization=true
spring.profiles.active=dev 

application-dev.properties 开发设置的端口

server.port=8989

application-prod.properties

server.port=8081

原文地址:https://www.cnblogs.com/yiweiyihang/p/13068537.html