软件编程
位置:首页>> 软件编程>> java编程>> 基于springboot 配置文件context-path的坑

基于springboot 配置文件context-path的坑

作者:Caluzeman  发布时间:2021-07-04 17:37:27 

标签:springboot,配置文件,context-path

配置文件context-path的坑

context-path: /manage 这个配置加入后会导致访问spring的页面都需要加这个/manage前缀,这个配置的作用是区分与spring重名的页面

context-path配置失效问题

springboot升级到2.0版本后

server.context-path就升级成了server.servlet.context-path:"/url"

来源:https://blog.csdn.net/weixin_41574643/article/details/86687703

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com