springboot配置文件

#tomcat配置:
server.port=8081

#servlet:
server.servlet.context-path=/springboot
或server.servlet.context-path=/(前缀)
#配置视图解析器
spring.mvc.view.prefix=/(前缀)
spring.mvc.view.suffix=jsp
#springboot主核心配置文件
#激活使用的配置文件
spring:
  profiles:
    active: dev
      #填 - 后面的单词选择激活配置文件,选择一个配置文件激活使用

#application-dev.properties ,
#application-test.properties ,
#application-ready.properties ,
#application-dev.properties
指定功能的配置文件书写与原配置文件相同

 

posted @ 2022-05-15 10:16  SimoonJia  阅读(61)  评论(0编辑  收藏  举报