]> juplo.de Git - website/blob
dbc7edb34608d36293a7e581f93c1d2a95965bcc
[website] /
1 ---
2 _edit_last: "2"
3 author: kai
4 categories:
5   - howto
6 date: "2016-06-23T10:49:03+00:00"
7 guid: http://juplo.de/?p=754
8 parent_post_id: null
9 post_id: "754"
10 tags:
11   - java
12   - maven
13   - spring
14   - spring-boot
15 title: Show Spring-Boot Auto-Configuration-Report When Running Via "mvn spring-boot:run"
16 url: /show-spring-boot-auto-configuration-report-when-running-via-mvn-spring-boot-run/
17
18 ---
19 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.
20 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.
21 But most often, when I want to see the Auto-Configuration-Report, I am running my app via `mvn:spring-boot:run`.
22 And, unfortunatly, none of the guids you can find by google tells you, how to turn on the Auto-Configuration-Report in this case.
23 Hence, I hope I can help out, with this little tip.
24
25 ## How To Turn On The Auto-Configuration-Report When Running `mvn spring-boot:run`
26
27 The report is shown, if the logging for `org.springframework.boot.autoconfigure.logging` is set to `DEBUG`.
28 The most simple way to do that, is to add the following line to your `src/main/resources/application.properties`:
29
30 ```shell
31 logging.level.org.springframework.boot.autoconfigure.logging=DEBUG
32
33 ```
34
35 I was not able, to enable the logging via a command-line-switch.
36 The seemingly obvious way to add the property to the command line with a `-D` like this:
37
38 ```shell
39 mvn spring-boot:run -Dlogging.level.org.springframework.boot.autoconfigure.logging=DEBUG
40
41 ```
42
43 did not work for me.
44 If anyone could point out, how to do that in a comment to this post, I would be realy grateful!
45
46 ## Funded by the Europian Union
47
48 This article was published in the course of a
49 [resarch-project](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project"),
50 that is funded by the European Union and the federal state Northrhine-Wetphalia.
51
52 [![Europäische Union: Investitionen in unsere Zukunft - Europäischer Fonds für regionale Entwicklung](/img/EFRE_Foerderhinweis_deutsch_farbig.svg)![EFRE.NRW 2014-2020: Invesitionen in Wachstum und Beschäftigung](/img/Ziel2NRW_4c_1809_eps.svg)](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project")