5 date: "2016-06-23T10:49:03+00:00"
6 guid: http://juplo.de/?p=754
14 title: Show Spring-Boot Auto-Configuration-Report When Running Via "mvn spring-boot:run"
15 url: /show-spring-boot-auto-configuration-report-when-running-via-mvn-spring-boot-run/
18 There are a lot of explanations, how to turn on the Auto-Configuration-Report offered by Spring-Boot to debug the configuration of ones app.
19 For an good example take a look at this little [Spring boot troubleshooting auto-configuration](http://www.leveluplunch.com/java/tutorials/009-spring-boot-what-autoconfigurations-turned-on/ "This guide shows nearly all options, to turn on the report") guide.
20 But most often, when I want to see the Auto-Configuration-Report, I am running my app via `mvn:spring-boot:run`.
21 And, unfortunatly, none of the guids you can find by google tells you, how to turn on the Auto-Configuration-Report in this case.
22 Hence, I hope I can help out, with this little tip.
24 ## How To Turn On The Auto-Configuration-Report When Running `mvn spring-boot:run`
26 The report is shown, if the logging for `org.springframework.boot.autoconfigure.logging` is set to `DEBUG`.
27 The most simple way to do that, is to add the following line to your `src/main/resources/application.properties`:
30 logging.level.org.springframework.boot.autoconfigure.logging=DEBUG
34 I was not able, to enable the logging via a command-line-switch.
35 The seemingly obvious way to add the property to the command line with a `-D` like this:
38 mvn spring-boot:run -Dlogging.level.org.springframework.boot.autoconfigure.logging=DEBUG
43 If anyone could point out, how to do that in a comment to this post, I would be realy grateful!