Skip to content

Commit 432969e

Browse files
committed
Correct documented spring.factories key for management context config
Closes gh-5664
1 parent a4d7a77 commit 432969e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ HTTP (if there is an server available). An HTTP endpoints can be customized furt
236236
creating a bean of type `MvcEndpoint`. Your `MvcEndpoint` is not a `@Controller` but it
237237
can use `@RequestMapping` (and `@Managed*`) to expose resources.
238238

239-
TIP: If you are doing this as a library feature consider adding a configuration class to
240-
`/META-INF/spring.factories` under the key
241-
`org.springframework.boot.actuate.autoconfigure.EndpointWebMvcConfiguration`. If you do
242-
that then the endpoint will move to a child context with all the other MVC endpoints if
243-
your users ask for a separate management port or address. A configuration declared this
244-
way can be a `WebConfigurerAdapter` if it wants to add static resources (for instance) to
245-
the management endpoints.
239+
TIP: If you are doing this as a library feature consider adding a configuration class
240+
annoated with `@ManagementContextConfiguration` to `/META-INF/spring.factories` under the
241+
key `org.springframework.boot.actuate.autoconfigure.ManagementContextConfiguration`. If
242+
you do that then the endpoint will move to a child context with all the other MVC
243+
endpoints if your users ask for a separate management port or address. A configuration
244+
declared this way can be a `WebConfigurerAdapter` if it wants to add static resources (for
245+
instance) to the management endpoints.
246246

247247

248248

0 commit comments

Comments
 (0)