Fix reference to configurePathMatching in code sample
See gh-33277
This commit is contained in:
@@ -699,7 +699,7 @@ Java::
|
|||||||
public class WebConfig implements WebFluxConfigurer {
|
public class WebConfig implements WebFluxConfigurer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configurePathMatch(PathMatchConfigurer configurer) {
|
public void configurePathMatching(PathMatchConfigurer configurer) {
|
||||||
configurer.addPathPrefix(
|
configurer.addPathPrefix(
|
||||||
"/api", HandlerTypePredicate.forAnnotation(RestController.class));
|
"/api", HandlerTypePredicate.forAnnotation(RestController.class));
|
||||||
}
|
}
|
||||||
@@ -715,7 +715,7 @@ Kotlin::
|
|||||||
class WebConfig : WebFluxConfigurer {
|
class WebConfig : WebFluxConfigurer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
fun configurePathMatch(configurer: PathMatchConfigurer) {
|
fun configurePathMatching(configurer: PathMatchConfigurer) {
|
||||||
configurer.addPathPrefix(
|
configurer.addPathPrefix(
|
||||||
"/api", HandlerTypePredicate.forAnnotation(RestController::class.java))
|
"/api", HandlerTypePredicate.forAnnotation(RestController::class.java))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user