springboot配置文件拆分

application.properties   默认取开发版本:spring

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

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

server.port=8989

application-prod.propertiesapp

server.port=8081
相关文章
相关标签/搜索