mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish 'Improve reference documentation'
See gh-38942
This commit is contained in:
parent
6ed8dc2970
commit
ac00a0c28b
@ -19,7 +19,7 @@ This is controlled through two external properties:
|
|||||||
|
|
||||||
[[howto.data-initialization.using-hibernate]]
|
[[howto.data-initialization.using-hibernate]]
|
||||||
=== Initialize a Database Using Hibernate
|
=== Initialize a Database Using Hibernate
|
||||||
You can set `spring.jpa.hibernate.ddl-auto` explicitly, and the standard Hibernate property values are `none`, `validate`, `update`, `create`, and `create-drop`.
|
You can set `spring.jpa.hibernate.ddl-auto` explicitly to one of the standard Hibernate property values which are `none`, `validate`, `update`, `create`, and `create-drop`.
|
||||||
Spring Boot chooses a default value for you based on whether it thinks your database is embedded.
|
Spring Boot chooses a default value for you based on whether it thinks your database is embedded.
|
||||||
It defaults to `create-drop` if no schema manager has been detected or `none` in all other cases.
|
It defaults to `create-drop` if no schema manager has been detected or `none` in all other cases.
|
||||||
An embedded database is detected by looking at the `Connection` type and JDBC url.
|
An embedded database is detected by looking at the `Connection` type and JDBC url.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[[howto.logging]]
|
[[howto.logging]]
|
||||||
== Logging
|
== Logging
|
||||||
Spring Boot has no mandatory logging dependency, except for the Commons Logging API, which is typically provided by Spring Framework's `spring-jcl` module.
|
Spring Boot has no mandatory logging dependency, except for the Commons Logging API, which is typically provided by Spring Framework's `spring-jcl` module.
|
||||||
To use https://logback.qos.ch[Logback], you need to include it and `spring-jcl` in the classpath.
|
To use https://logback.qos.ch[Logback], you need to include it and `spring-jcl` on the classpath.
|
||||||
The recommended way to do that is through the starters, which all depend on `spring-boot-starter-logging`.
|
The recommended way to do that is through the starters, which all depend on `spring-boot-starter-logging`.
|
||||||
For a web application, you only need `spring-boot-starter-web`, since it depends transitively on the logging starter.
|
For a web application, you only need `spring-boot-starter-web`, since it depends transitively on the logging starter.
|
||||||
If you use Maven, the following dependency adds logging for you:
|
If you use Maven, the following dependency adds logging for you:
|
||||||
|
Loading…
Reference in New Issue
Block a user