SpringBoot 有两种格式的配置文件:
1、.properties 文件 :键值对格式配置方式
# Tomcat 端口
server.port=8081
# 上下文
server.servlet.context-path=/cats
2、.yml文件:采用数据序列化格式配置方式
# Tomcat 端口
server:
port: 8081
# 上下文
servlet.context-path: /cats
SpringBoot 有两种格式的配置文件:
1、.properties 文件 :键值对格式配置方式
# Tomcat 端口
server.port=8081
# 上下文
server.servlet.context-path=/cats
2、.yml文件:采用数据序列化格式配置方式
# Tomcat 端口
server:
port: 8081
# 上下文
servlet.context-path: /cats
本文标题:SpringBoot 程序配置文件
本文链接:https://www.haomeiwen.com/subject/finxqhtx.html
网友评论