Class JolokiaWebEndpointAutoConfiguration

java.lang.Object
org.jolokia.support.spring.actuator.JolokiaWebEndpointAutoConfiguration

@AutoConfiguration @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(org.jolokia.server.core.http.AgentServlet.class) public class JolokiaWebEndpointAutoConfiguration extends Object

This autoconfiguration ensures that we can see /jolokia link under /actuator page. We don't declare any Bean that registers a servlet or a controller.

Note: Adding ConditionalOnAvailableEndpoint on the bean method that produces the endpoint in the first place is completely fine - related Condition will check proper exposure config amd Spring will not even create JolokiaWebEndpoint in the first place.

  • Constructor Details

    • JolokiaWebEndpointAutoConfiguration

      public JolokiaWebEndpointAutoConfiguration()
  • Method Details

    • jolokiaManagementEndpoint

      @Bean @ConditionalOnAvailableEndpoint(exposure=WEB) public JolokiaWebEndpoint jolokiaManagementEndpoint(org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties managementServerProperties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties webEndpointProperties, org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath dispatcherServletPath)