O'Reilly logo

Learning Spring Boot by Greg L. Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Spring Boot's auto-configuration report

Spring Boot provides a very useful report to tip you off about what it's doing. There are different ways to turn on the report, shown as follows:

  • Inside your IDE, add --debug as a program argument. Then run it.
  • From the command line, execute ./gradlew clean build && java -jar build/libs/network-monitor-0.0.1-SNAPSHOT.jar --debug.

Tip

If you try to put --debug into the gradlew command, it will signal gradlew itself to generate a debug trail and not get passed on to the app.

The results should look something like this:

=========================
AUTO-CONFIGURATION REPORT
=========================


Positive matches:
-----------------

  ActiveMQAutoConfiguration
 - @ConditionalOnClass classes found: javax.jms.ConnectionFactory,org.apache.activemq.ActiveMQConnectionFactory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required