Skip to content

Commit db94460

Browse files
committed
Merge pull request #28809 from polarbear567
* pr/28809: Update copyright year of changed files Fix reference to matching-strategy property Closes gh-28809
2 parents 1bb3f90 + 1876b4b commit db94460

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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)