0
点赞
收藏
分享

微信扫一扫

springboot解决server.context-path=/crud 不生效的问题


原因:在springboot2.0.0之后,这个server.context-path过期了,换成了server.servlet.context-path=/crud这个配置。

springboot解决server.context-path=/crud 不生效的问题_spring

如此即可访问项目名

th:src下的路径也被加上了crud的前缀

springboot解决server.context-path=/crud 不生效的问题_spring_02

举报

相关推荐

0 条评论