Fix reference to configurePathMatching in code sample

See gh-33277
This commit is contained in:
sheip9 2024-07-26 15:47:37 +08:00 committed by Stéphane Nicoll
parent 52849819de
commit 7a2fc2ff09
1 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@ Java::
public class WebConfig implements WebFluxConfigurer {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
public void configurePathMatching(PathMatchConfigurer configurer) {
configurer.addPathPrefix(
"/api", HandlerTypePredicate.forAnnotation(RestController.class));
}
@ -715,7 +715,7 @@ Kotlin::
class WebConfig : WebFluxConfigurer {
@Override
fun configurePathMatch(configurer: PathMatchConfigurer) {
fun configurePathMatching(configurer: PathMatchConfigurer) {
configurer.addPathPrefix(
"/api", HandlerTypePredicate.forAnnotation(RestController::class.java))
}