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:
Greg Turnquist
2013-11-01 23:01:54 -05:00
committed by Dave Syer
parent 089233e472
commit b63016d8fc
16 changed files with 839 additions and 51 deletions

View File

@@ -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 {