Example usage for org.springframework.boot.autoconfigure EnableAutoConfiguration ENABLED_OVERRIDE_PROPERTY

List of usage examples for org.springframework.boot.autoconfigure EnableAutoConfiguration ENABLED_OVERRIDE_PROPERTY

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure EnableAutoConfiguration ENABLED_OVERRIDE_PROPERTY.

Prototype

String ENABLED_OVERRIDE_PROPERTY

To view the source code for org.springframework.boot.autoconfigure EnableAutoConfiguration ENABLED_OVERRIDE_PROPERTY.

Click Source Link

Usage

From source file:org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.java

protected boolean isEnabled(AnnotationMetadata metadata) {
    if (getClass() == AutoConfigurationImportSelector.class) {
        return getEnvironment().getProperty(EnableAutoConfiguration.ENABLED_OVERRIDE_PROPERTY, Boolean.class,
                true);/*w w w .  ja v a 2  s.c om*/
    }
    return true;
}