Skip to content

Commit f3c93d3

Browse files
polarbear567snicoll
authored andcommitted
Fix reference to matching-strategy property
See gh-28809
1 parent 1bb3f90 commit f3c93d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/PatternParseFailureAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PatternParseFailureAnalyzer extends AbstractFailureAnalyzer<PatternParseEx
3232
protected FailureAnalysis analyze(Throwable rootFailure, PatternParseException cause) {
3333
return new FailureAnalysis("Invalid mapping pattern detected: " + cause.toDetailedString(),
3434
"Fix this pattern in your application or switch to the legacy parser implementation with "
35-
+ "'spring.mvc.pathpattern.matching-strategy=ant_path_matcher'.",
35+
+ "'spring.mvc.pathmatch.matching-strategy=ant_path_matcher'.",
3636
cause);
3737
}
3838

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/PatternParseFailureAnalyzerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void patternParseFailureQuotesPattern() {
3939
assertThat(failureAnalysis.getDescription()).contains("Invalid mapping pattern detected: /spring/**/framework");
4040
assertThat(failureAnalysis.getAction())
4141
.contains("Fix this pattern in your application or switch to the legacy parser"
42-
+ " implementation with 'spring.mvc.pathpattern.matching-strategy=ant_path_matcher'.");
42+
+ " implementation with 'spring.mvc.pathmatch.matching-strategy=ant_path_matcher'.");
4343
}
4444

4545
private FailureAnalysis performAnalysis(String pattern) {

0 commit comments

Comments
 (0)