首页 > 其他分享 >springboot解决server.context-path=/crud 不生效的问题

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

时间:2022-11-24 19:38:22浏览次数:46  
标签:springboot2.0 springboot crud server context path


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

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

如此即可访问项目名

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

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

标签:springboot2.0,springboot,crud,server,context,path
From: https://blog.51cto.com/u_15890333/5884600

相关文章