How to do it...

  1. Conveniently, Spring Boot provides us with an ability to get the CONDITIONS EVALUATION REPORT by simply starting the application with the debug flag. This can be passed to the application either as an environment variable, DEBUG, as a system property, -Ddebug, or as an application property, --debug.
  2. Start the application by running DEBUG=true ./gradlew clean bootRun.
  3. Now, if you look at the console logs, you will see a lot more information printed there that is marked with the DEBUG level log. At the end of the startup log sequence, we will see the CONDITIONS EVALUATION REPORT as follows:
    =========================
    CONDITIONS EVALUATION REPORT
    =========================
    
    
    Positive matches:
    -----------------
    ...
    DataSourceAutoConfiguration
          - @ConditionalOnClass classes found:    
javax.sql.DataSource,org.springframework.jdbc.
datasource.embedded.EmbeddedDatabaseType
(OnClassCondition)
... Negative matches: ----------------- ... GsonAutoConfiguration - required @ConditionalOnClass classes not found:
com.google.gson.Gson (OnClassCondition)
...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.183.89