springspring-mvc

Would somebody have an example of how-to use and program a Spring PathMatchConfigurer?


Would somebody have example code which shows how-to use and program a Spring PathMatchConfigurer?


Solution

  • PathMatchConfigurer helps with configuring HandlerMappings path matching options such as trailing slash match, suffix registration, path matcher and path helper. Configured path matcher and path helper instances are shared for:

    `RequestMappings`
    `ViewControllerMappings`
    `ResourcesMappings`
    

    for the Spring 'PathMatchConfigurer', example follow this