]> juplo.de Git - website/blob
5531c6c50be58ac9d6855a812f0e7cd05286fbc1
[website] /
1 ---
2 _edit_last: "2"
3 categories:
4   - howto
5 date: "2016-06-23T10:49:03+00:00"
6 guid: http://juplo.de/?p=754
7 parent_post_id: null
8 post_id: "754"
9 tags:
10   - java
11   - maven
12   - spring
13   - spring-boot
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/
16
17 ---
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.
23
24 ## How To Turn On The Auto-Configuration-Report When Running `mvn spring-boot:run`
25
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`:
28
29 ```shell
30 logging.level.org.springframework.boot.autoconfigure.logging=DEBUG
31
32 ```
33
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:
36
37 ```shell
38 mvn spring-boot:run -Dlogging.level.org.springframework.boot.autoconfigure.logging=DEBUG
39
40 ```
41
42 did not work for me.
43 If anyone could point out, how to do that in a comment to this post, I would be realy grateful!