diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 494e3c4b5d9..0725fcda5a9 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1533,6 +1533,9 @@ when switching from in-memory to a '`real`' database that you don't make assumpt the existence of the tables and data in the new platform. You either have to set `ddl-auto` explicitly, or use one of the other mechanisms to initialize the database. +NOTE: You can output the schema creation by enabling the `org.hibernate.SQL` logger. This +is done for you automatically if you enable the <>. + In addition, a file named `import.sql` in the root of the classpath will be executed on startup. This can be useful for demos and for testing if you are careful, but probably not something you want to be on the classpath in production. It is a Hibernate feature diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 1cae844d312..4e5cd667b19 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -837,6 +837,8 @@ messages to the console you can start your application with a `--debug` flag. $ java -jar myapp.jar --debug ---- +NOTE: you can also specify `debug=true` in your `application.properties`. + If your terminal supports ANSI, color output will be used to aid readability. You can set `spring.output.ansi.enabled` to a {dc-spring-boot}/ansi/AnsiOutput.Enabled.{dc-ext}[supported value] to override the auto