{"id":6883,"date":"2013-01-12T15:00:29","date_gmt":"2013-01-12T13:00:29","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=6883"},"modified":"2013-01-12T14:41:08","modified_gmt":"2013-01-12T12:41:08","slug":"spring-mvc-customizing-requestmappinghandlermapping","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html","title":{"rendered":"Spring MVC &#8211; Customizing RequestMappingHandlerMapping"},"content":{"rendered":"<p>When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called <a href=\"http:\/\/static.springsource.org\/spring\/docs\/3.2.x\/javadoc-api\/org\/springframework\/web\/servlet\/mvc\/method\/annotation\/RequestMappingHandlerMapping.html\">RequestMappingHandlerMapping<\/a> gets registered with Spring MVC. This component or in general a HandlerMapping component is responsible for routing request URI&#8217;s to handlers which are the controller methods annotated with @RequestMapping annotation.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\nThere are two specific configurations in RequestMappingHandlerMapping that may be non-intuitive:<\/p>\n<p>The first configuration is &#8216;useSuffixPatternMatch&#8217;, which is if say a uri &#8216;\/members&#8217; maps to method to return a list of entities, &#8216;\/members.xyz&#8217; would map to the same handler method.<br \/>\nThe second configuration is &#8216;useTrailingSlashMatch&#8217; which is that &#8216;\/members&#8217; and &#8216;\/members\/&#8217; would map to the same handler method.<br \/>\nIf these two behavior need to be modified, the way to do that is to configure the RequestMappingHandlerMapping.<\/p>\n<p>If &lt;mvc:annotation-driven\/&gt; has been used to define the RequestMappingHandlerMapping, then the unwieldy way to go about it would be to remove &lt;mvc:annotation-driven\/&gt; and instead to configure Spring MVC by expanding out the components that get registered by the custom namespace handler handling the &#8216;mvc&#8217; namespace, which is something along these lines(this is not complete and is being shown just to demonstrate the complexity of the configuration):<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\" brush:xml\">&lt;bean name='handlerAdapter' class='org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter'&gt;\r\n &lt;property name='webBindingInitializer'&gt;\r\n  &lt;bean class='org.springframework.web.bind.support.ConfigurableWebBindingInitializer'&gt;\r\n   &lt;property name='conversionService' ref='conversionService'&gt;&lt;\/property&gt;\r\n   &lt;property name='validator'&gt;\r\n    &lt;bean class='org.springframework.validation.beanvalidation.LocalValidatorFactoryBean'\/&gt;\r\n   &lt;\/property&gt;\r\n  &lt;\/bean&gt;\r\n &lt;\/property&gt;\r\n &lt;property name='messageConverters'&gt;\r\n  &lt;list&gt;\r\n   &lt;bean class='org.springframework.http.converter.ByteArrayHttpMessageConverter'\/&gt;\r\n   &lt;bean class='org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter'\/&gt;\r\n   &lt;bean class='org.springframework.http.converter.json.MappingJackson2HttpMessageConverter'\/&gt;\r\n   &lt;bean class='org.springframework.http.converter.StringHttpMessageConverter'&gt;&lt;\/bean&gt;\r\n   &lt;bean class='org.springframework.http.converter.ResourceHttpMessageConverter'&gt;&lt;\/bean&gt;\r\n   &lt;bean class='org.springframework.http.converter.xml.SourceHttpMessageConverter'&gt;&lt;\/bean&gt;\r\n   &lt;bean class='org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter'&gt;&lt;\/bean&gt;\r\n  &lt;\/list&gt;\r\n &lt;\/property&gt;\r\n&lt;\/bean&gt;\r\n\r\n&lt;bean name='handlerMapping' class='org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping'&gt;\r\n &lt;property name='useTrailingSlashMatch' value='false'&gt;&lt;\/property&gt;\r\n&lt;\/bean&gt;<\/pre>\n<p>This is definitely not a good way to go about changing the configuration. Instead if faced with the need to configure RequestMappingHandlerMapping a far better approach is to move a part or the entire web-mvc configuration to Java @Configuration this way:<\/p>\n<pre class=\" brush:java\">package mvcsample.spring;\r\n\r\nimport org.springframework.context.annotation.Bean;\r\nimport org.springframework.context.annotation.Configuration;\r\nimport org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;\r\nimport org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;\r\n\r\n@Configuration\r\npublic class WebConfig extends WebMvcConfigurationSupport{\r\n @Bean\r\n public RequestMappingHandlerMapping requestMappingHandlerMapping() {\r\n  RequestMappingHandlerMapping handlerMapping = super.requestMappingHandlerMapping();\r\n  handlerMapping.setUseSuffixPatternMatch(false);\r\n  handlerMapping.setUseTrailingSlashMatch(false);\r\n  return handlerMapping;\r\n } \r\n}<\/pre>\n<p>and to import this configuration into the rest of the configuration xml(there are other <a href=\"http:\/\/static.springsource.org\/spring-framework\/docs\/3.2.0.RELEASE\/spring-framework-reference\/html\/beans.html#beans-java-combining\">documented<\/a> ways also):<\/p>\n<pre class=\" brush:xml\">&lt;bean class='mvcsample.spring.WebConfig'\/&gt;\r\n\r\n&lt;!-- \r\n&lt;mvc:annotation-driven&gt;\r\n&lt;\/mvc:annotation-driven&gt; \r\n--&gt;<\/pre>\n<p>@Configuration thus provides a simpler mechanism to configure the components in Spring MVC and migration from xml based configuration to Java configuration is highly recommended to simplify the configuration and manage customizations.<br \/>\n&nbsp;<\/p>\n<p><strong><em>Reference: <\/em><\/strong><a href=\"http:\/\/www.java-allandsundry.com\/2013\/01\/spring-mvc-customizing.html\">Spring MVC &#8211; Customizing RequestMappingHandlerMapping<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Biju Kunjummen at the <a href=\"http:\/\/www.java-allandsundry.com\/\">all and sundry<\/a> blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called RequestMappingHandlerMapping gets registered with Spring MVC. This component or in general a HandlerMapping component is responsible for routing request URI&#8217;s to handlers which are the controller methods annotated with @RequestMapping annotation. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &hellip;<\/p>\n","protected":false},"author":236,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[30,150],"class_list":["post-6883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-spring","tag-spring-mvc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring MVC - Customizing RequestMappingHandlerMapping<\/title>\n<meta name=\"description\" content=\"When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring MVC - Customizing RequestMappingHandlerMapping\" \/>\n<meta property=\"og:description\" content=\"When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-12T13:00:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Biju Kunjummen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Biju Kunjummen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html\"},\"author\":{\"name\":\"Biju Kunjummen\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/802eedfe6f17c3c13fa656af46b6b0e5\"},\"headline\":\"Spring MVC &#8211; Customizing RequestMappingHandlerMapping\",\"datePublished\":\"2013-01-12T13:00:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html\"},\"wordCount\":324,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"Spring\",\"Spring MVC\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html\",\"name\":\"Spring MVC - Customizing RequestMappingHandlerMapping\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2013-01-12T13:00:29+00:00\",\"description\":\"When Spring MVC is configured using &lt;mvc:annotation-driven\\\/&gt; in an xml bean definition file, internally a component called\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/01\\\/spring-mvc-customizing-requestmappinghandlermapping.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Spring MVC &#8211; Customizing RequestMappingHandlerMapping\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/802eedfe6f17c3c13fa656af46b6b0e5\",\"name\":\"Biju Kunjummen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"caption\":\"Biju Kunjummen\"},\"sameAs\":[\"http:\\\/\\\/biju-allandsundry.blogspot.com\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Biju-Kunjummen\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring MVC - Customizing RequestMappingHandlerMapping","description":"When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html","og_locale":"en_US","og_type":"article","og_title":"Spring MVC - Customizing RequestMappingHandlerMapping","og_description":"When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called","og_url":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2013-01-12T13:00:29+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Biju Kunjummen","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Biju Kunjummen","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html"},"author":{"name":"Biju Kunjummen","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/802eedfe6f17c3c13fa656af46b6b0e5"},"headline":"Spring MVC &#8211; Customizing RequestMappingHandlerMapping","datePublished":"2013-01-12T13:00:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html"},"wordCount":324,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["Spring","Spring MVC"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html","url":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html","name":"Spring MVC - Customizing RequestMappingHandlerMapping","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2013-01-12T13:00:29+00:00","description":"When Spring MVC is configured using &lt;mvc:annotation-driven\/&gt; in an xml bean definition file, internally a component called","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2013\/01\/spring-mvc-customizing-requestmappinghandlermapping.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Spring MVC &#8211; Customizing RequestMappingHandlerMapping"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/802eedfe6f17c3c13fa656af46b6b0e5","name":"Biju Kunjummen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","caption":"Biju Kunjummen"},"sameAs":["http:\/\/biju-allandsundry.blogspot.com"],"url":"https:\/\/www.javacodegeeks.com\/author\/Biju-Kunjummen"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/6883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/236"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=6883"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/6883\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=6883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=6883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=6883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}