Merge branch '2.5.x'

Closes gh-28839
pull/28902/head
Stephane Nicoll 3 years ago
commit 46a8673bf8

@ -32,7 +32,7 @@ class PatternParseFailureAnalyzer extends AbstractFailureAnalyzer<PatternParseEx
protected FailureAnalysis analyze(Throwable rootFailure, PatternParseException cause) { protected FailureAnalysis analyze(Throwable rootFailure, PatternParseException cause) {
return new FailureAnalysis("Invalid mapping pattern detected: " + cause.toDetailedString(), return new FailureAnalysis("Invalid mapping pattern detected: " + cause.toDetailedString(),
"Fix this pattern in your application or switch to the legacy parser implementation with " "Fix this pattern in your application or switch to the legacy parser implementation with "
+ "'spring.mvc.pathpattern.matching-strategy=ant_path_matcher'.", + "'spring.mvc.pathmatch.matching-strategy=ant_path_matcher'.",
cause); cause);
} }

@ -39,7 +39,7 @@ class PatternParseFailureAnalyzerTests {
assertThat(failureAnalysis.getDescription()).contains("Invalid mapping pattern detected: /spring/**/framework"); assertThat(failureAnalysis.getDescription()).contains("Invalid mapping pattern detected: /spring/**/framework");
assertThat(failureAnalysis.getAction()) assertThat(failureAnalysis.getAction())
.contains("Fix this pattern in your application or switch to the legacy parser" .contains("Fix this pattern in your application or switch to the legacy parser"
+ " implementation with 'spring.mvc.pathpattern.matching-strategy=ant_path_matcher'."); + " implementation with 'spring.mvc.pathmatch.matching-strategy=ant_path_matcher'.");
} }
private FailureAnalysis performAnalysis(String pattern) { private FailureAnalysis performAnalysis(String pattern) {

Loading…
Cancel
Save