学习仿牛客网社区项目
报错
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-11-17 22:20:02,256 ERROR [restartedMain] o.s.b.d.LoggingFailureAnalysisReporter [LoggingFailureAnalysisReporter.java:40]
***************************
APPLICATION FAILED TO START
***************************
Description:
Invalid mapping pattern detected: /**/*.css
^
No more pattern data allowed after {*...} or ** pattern element
Action:
Fix this pattern in your application or switch to the legacy parser implementation with `spring.mvc.pathpattern.matching-strategy=ant_path_matcher`.
Disconnected from the target VM, address: '127.0.0.1:63759', transport: 'socket'
Process finished with exit code 0
分析
是spring升级到5.3之后路径通配发生了变化。
解决
把/**/*.css
改为 /*/*.css
即可。