File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -236,13 +236,13 @@ HTTP (if there is an server available). An HTTP endpoints can be customized furt
236
236
creating a bean of type `MvcEndpoint`. Your `MvcEndpoint` is not a `@Controller` but it
237
237
can use `@RequestMapping` (and `@Managed*`) to expose resources.
238
238
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.
246
246
247
247
248
248
You can’t perform that action at this time.
0 commit comments