Spring Framework 6.0 changed the default value of matchOptionalTrailingSeparator from true to false. Closes gh-30976