1,resource-application.xxxx,配置端口和访问前缀
server.port=8081server.context-path=/girl 配置/girl后,/hello要加上/girl前缀(/girl/hello)2,resource文件夹下,建立application.yml,语法更简洁server: port: 8081 context-path: /girl
时间: 2024-11-08 10:05:18
1,resource-application.xxxx,配置端口和访问前缀
server.port=8081server.context-path=/girl 配置/girl后,/hello要加上/girl前缀(/girl/hello)2,resource文件夹下,建立application.yml,语法更简洁server: port: 8081 context-path: /girl