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

配置文件context-path的坑

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

context-path配置失效问题

springboot升级到2.0版本后

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

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

你可能感兴趣的:(基于springboot 配置文件context-path的坑)