Commit d9beafa4 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '1.5.x'

parents 006decea 4d4b91a5
...@@ -1930,10 +1930,9 @@ as shown in the following example: ...@@ -1930,10 +1930,9 @@ as shown in the following example:
[[howto-use-traditional-persistence-xml]] [[howto-use-traditional-persistence-xml]]
=== Use a Traditional `persistence.xml` File === Use a Traditional `persistence.xml` File
Spring does not require the use of XML to configure the JPA provider, and Spring Boot Spring Boot will not search for or use a `META-INF/persistence.xml` by default. If you
assumes you want to take advantage of that feature. If you prefer to use prefer to use a traditional `persistence.xml`, you need to define your own `@Bean` of
`persistence.xml`, you need to define your own `@Bean` of type type `LocalEntityManagerFactoryBean` (with an ID of '`entityManagerFactory`') and set the
`LocalEntityManagerFactoryBean` (with an ID of '`entityManagerFactory`') and set the
persistence unit name there. persistence unit name there.
See See
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment