============ 三种配置文件 ============ 1 .properties文件 /src/main/resources/application.properties: # 服务器端口 server.port=80 # 横幅 spring.main.banner-mode=off # 日志 logging.level.root=info logging.level.cn.tedu.springboot=debug 2 .yml文件 # 服务器端口 server: port: 80 # 横幅 spring: main: banner-mode: off # 日志 logging: level: root: info cn.tedu.springboot=debug: debug 3 .yaml文件 # 服务器端口 server: port: 80 # 横幅 spring: main: banner-mode: off # 日志 logging: level: root: info cn.tedu.springboot=debug: debug 推荐使用.yml文件。 例程:springboot_03_base_configuration