Create a report based on Boot's autoconfiguration decisions
- Gather autoconfiguration conditional decisiions (true and false) - Provide an actuator endpoint as one means to read the report - Define @EnableAutConfigurationReport annotation to turn this feature on - Tidy up autoconfig report a bit and log it if --debug=true
This commit is contained in:
committed by
Dave Syer
parent
089233e472
commit
b63016d8fc
@@ -20,6 +20,7 @@ import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.report.EnableAutoConfigurationReport;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
@@ -33,6 +34,7 @@ import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@EnableAutoConfigurationReport
|
||||
@ComponentScan
|
||||
@Controller
|
||||
public class SampleSecureApplication extends WebMvcConfigurerAdapter {
|
||||
|
||||
Reference in New Issue
Block a user