mvc:annotation-driven
AntPathMatcher
URL精准匹配
禁用匹配末尾斜线
1 | <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"> |
如果使用了mvc:annotation-driven
1 | <mvc:path-matching trailing-slash="false"/> |
参考
AntPathMatcher
禁用匹配末尾斜线
1 | <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"> |
如果使用了mvc:annotation-driven
1 | <mvc:path-matching trailing-slash="false"/> |
参考