1、在resource文件夹 的
application.properties 添加
#spring boot 端口设置
server.port=8081
#spring boot 默认的 context-path
server.context-path= /test
测试路径:
127.0.0.1:8081/test/mybaits/selectAll
本文介绍了如何在 Spring Boot 应用中配置 server.port 和 server.context-path 参数,并提供了一个具体的测试路径示例。
1、在resource文件夹 的
application.properties 添加
#spring boot 端口设置
server.port=8081
#spring boot 默认的 context-path
server.context-path= /test
测试路径:
127.0.0.1:8081/test/mybaits/selectAll
5338

被折叠的 条评论
为什么被折叠?