有人会有示例代码显示如何使用和编写Spring PathMatchConfigurer吗?
答案 0 :(得分:2)
PathMatchConfigurer
有助于配置HandlerMappings
路径匹配选项,例如尾随斜杠匹配,后缀注册,路径匹配器和路径助手。配置的路径匹配器和路径帮助器实例共享:
`RequestMappings`
`ViewControllerMappings`
`ResourcesMappings`
代表春天'PathMatchConfigurer',例如关注this