pecool

springboot 设定访问项目的根路径

springboot的配置文件application.yml:

spring.mvc.view.prefix : /
spring.mvc.view.suffix : .html 
server:
   port: 8082
   context-path: /pecool

如此一来,我们访问项目就变成:http://ipAddress:8082/pecool/customer/login

发表于 2020-06-10 22:05  pecool  阅读(7806)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2021-11-09
  • 2022-12-23
  • 2021-08-05
  • 2021-04-19
  • 2021-09-18
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-05-31
  • 2021-09-28
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案