因是在springboot2.6.0中将SpringMVC 默认路径匹配策略从AntPathMatcher 更改为PathPatternParser,导致出错
解决办法是切换回原先的AntPathMatcher
解决方式:
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
因是在springboot2.6.0中将SpringMVC 默认路径匹配策略从AntPathMatcher 更改为PathPatternParser,导致出错
解决方式:
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher