Class JavaMelodyDisabledAutoConfiguration

java.lang.Object
net.bull.javamelody.JavaMelodyDisabledAutoConfiguration

@Configuration @ConditionalOnProperty(prefix="javamelody", name="enabled", havingValue="false", matchIfMissing=false) public class JavaMelodyDisabledAutoConfiguration extends Object
Spring Boot auto-configuration for disabled JavaMelody. This class is picked up by the Spring Boot auto-configuration mechanism. It disables JavaMelody initialization by the servlet container, when the Spring's property javamelody.enabled is false, for the case when the webapp is deployed as war in a servlet container.
  • Constructor Details

    • JavaMelodyDisabledAutoConfiguration

      public JavaMelodyDisabledAutoConfiguration()
  • Method Details

    • javamelodyDisabled

      @Bean public String javamelodyDisabled()
      Executed when Spring has property javamelody.enabled=false
      Returns:
      "true"