MatchableHandlerMapping is backwards compatible

This commit is contained in:
Rossen Stoyanchev 2020-06-19 22:01:51 +01:00
parent 7391f9b392
commit b1da89344f
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ public interface MatchableHandlerMapping extends HandlerMapping {
* @since 5.3 * @since 5.3
*/ */
@Nullable @Nullable
PathPatternParser getPatternParser(); default PathPatternParser getPatternParser() {
return null;
}
/** /**
* Determine whether the request matches the given pattern. Use this method * Determine whether the request matches the given pattern. Use this method