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

 

相关文章:

  • 2021-12-27
  • 2021-11-16
  • 2021-04-30
  • 2022-01-04
  • 2021-05-28
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-07-19
  • 2022-12-23
  • 2021-08-31
  • 2021-07-15
相关资源
相似解决方案