配置文件应该是没有问题的,显示为绿色,之前还能回车自动显示yml格式,但是现在要手动调整,是我按到什么快捷键了嘛
在application.yml,追加如下配置即可修改项目访问路径:
server: port:8088 context-path:/springboot-demo
此时,演示properties方式的效果,如下图:
server.port=8088 server.context-path=/springboot-demo