Reinstate removal of semicolon content
Commit 5b1165 was an attempt to leave semicolon content in the URL path while ignoring it for request mapping purposes. However, it becomes quite difficult to manage and semicolon content should not always be ignored (sometimes a semicolon is used as a separator of multiple items in a path segment, rather than for matrix variables). This change effectively reverts back to the original approach in 3.2 where a flag on AbstractHandlerMapping can be used to have semicolon content removed or kept. If kept, path segments with matrix variables must be represented with a path segment. The main difference is that by default it is removed everywhere including the MVC namespace and Java config. Issue: SPR-10427, SPR-10234
This commit is contained in:
@@ -1173,9 +1173,7 @@ public void findPet(
|
||||
<para>Note that to enable the use of matrix variables, you must set the
|
||||
<classname>removeSemicolonContent</classname> property of
|
||||
<classname>RequestMappingHandlerMapping</classname> to <code>false</code>.
|
||||
By default it is set to <code>true</code> with the exception of the
|
||||
MVC namespace and the MVC Java config both of which automatically enable
|
||||
the use of matrix variables.</para>
|
||||
By default it is set to <code>false</code>.</para>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user