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
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