未配置项目根路径
SpringBoot项目端口为8185,默认根路径为 /,启动SpringBoot项目观察控制台打印信息。
这时访问接口和静态资源的地址为:
http://localhost:8185/user/login
http://localhost:8185/index.html
已配置项目根路径
server:
port: 8185
servlet:
context-path: /mobile
SpringBoot项目端口为8185,默认根路径为 /mobile,启动SpringBoot项目观察控制台打印信息。
这时访问接口和静态资源的地址为:
http://localhost:8185/mobile/user/login
http://localhost:8185/mobile/index.html