SpringBoot笔记系列:(二十二)使用yml配置文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 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

SpringBoot笔记系列目录

猜你喜欢

转载自blog.csdn.net/panchao888888/article/details/81474949