版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/panchao888888/article/details/81474949
SpringBoot推按使用yml配置文件来代替properties配置文件
新增application.yml配置文件
server:
port: 8080
servlet:
context-path: /springboot-helloworld
删除application.properties配置文件
server.port=8080
server.servlet.context-path=/springboot-helloworld