@Bean @ConditionalOnEnabledEndpoint("docs") @ConditionalOnResource(resources = "classpath:/META-INF/resources/spring-boot-actuator/docs/index.html") public DocsMvcEndpoint docsMvcEndpoint( ManagementServletContext managementServletContext) { return new DocsMvcEndpoint(managementServletContext); }
@Bean public ManagementServletContext managementServletContext( final ManagementServerProperties properties) { return new ManagementServletContext() { @Override public String getContextPath() { return properties.getContextPath(); } }; }
@ConditionalOnEnabledEndpoint("actuator") @Bean public HalJsonMvcEndpoint halJsonMvcEndpoint( ManagementServletContext managementServletContext, ResourceProperties resources, ResourceLoader resourceLoader) { if (HalBrowserMvcEndpoint.getHalBrowserLocation(resourceLoader) != null) { return new HalBrowserMvcEndpoint(managementServletContext); } return new HalJsonMvcEndpoint(managementServletContext); }
@ConditionalOnProperty(prefix = "endpoints.actuator", name = "enabled", matchIfMissing = true) @Bean public ActuatorHalJsonEndpoint actuatorMvcEndpoint( ManagementServletContext managementServletContext, ResourceProperties resources, ResourceLoader resourceLoader) { if (ActuatorHalBrowserEndpoint.getHalBrowserLocation(resourceLoader) != null) { return new ActuatorHalBrowserEndpoint(managementServletContext); } return new ActuatorHalJsonEndpoint(managementServletContext); }
@Bean @ConditionalOnProperty(prefix = "endpoints.docs", name = "enabled", matchIfMissing = true) @ConditionalOnResource(resources = "classpath:/META-INF/resources/spring-boot-actuator/docs/index.html") public ActuatorDocsEndpoint actuatorDocsEndpoint( ManagementServletContext managementServletContext) { return new ActuatorDocsEndpoint(managementServletContext); }
public AdminConsole(ManagementServletContext managementServletContext) { super("console", "/console", true); this.managementServletContext = managementServletContext; }
@Bean public DocsMvcEndpoint docs(ManagementServletContext managementServletContext) { return new DocsMvcEndpoint(managementServletContext); }