Browse Source

Update doc for schema creation

See gh-446
pull/3030/merge
Stephane Nicoll 11 years ago
parent
commit
f0b203f6da
  1. 3
      spring-boot-docs/src/main/asciidoc/howto.adoc
  2. 2
      spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

3
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 @@ -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 <<boot-features-logging-console-output,debug mode>>.
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

2
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. @@ -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

Loading…
Cancel
Save