有人会有一个如何使用和编程Spring PathMatchConfigurer的例子吗?

时间:2014-08-06 15:53:20

标签: spring spring-mvc

有人会有示例代码显示如何使用和编写Spring PathMatchConfigurer吗?

1 个答案:

答案 0 :(得分:2)

PathMatchConfigurer有助于配置HandlerMappings路径匹配选项,例如尾随斜杠匹配,后缀注册,路径匹配器和路径助手。配置的路径匹配器和路径帮助器实例共享:

`RequestMappings`
`ViewControllerMappings`
`ResourcesMappings`

代表春天'PathMatchConfigurer',例如关注this