spring mvc报错:No more pattern data allowed after {*...} or ** pattern element

 

原因:
错误是路径通配问题,查找发现是spring升级到5.3之后路径通配发生了变化,官方给出的解释是“In Spring MVC, the path was previously analyzed by AntPathMatcher, but it was changed to use PathPatternParser introduced in WebFlux from Spring 5.3.0.”。

解决:
具体解决是把/**/*.css 改为 /*/*.css,项目中可能涉及多个文件,都要改。


原文链接:https://blog.csdn.net/qq_37974048/article/details/113979249

https://blog.csdn.net/weixin_37646636/article/details/135580533

posted @ 2024-06-06 13:45  与f  阅读(83)  评论(0编辑  收藏  举报