Browse Source

Merge branch '1.5.x'

pull/12594/merge
Stephane Nicoll 8 years ago
parent
commit
d9beafa45f
  1. 7
      spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

7
spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

@ -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]]
=== Use a Traditional `persistence.xml` File
Spring does not require the use of XML to configure the JPA provider, and Spring Boot
assumes you want to take advantage of that feature. If you prefer to use
`persistence.xml`, you need to define your own `@Bean` of type
`LocalEntityManagerFactoryBean` (with an ID of '`entityManagerFactory`') and set the
Spring Boot will not search for or use a `META-INF/persistence.xml` by default. If you
prefer to use a traditional `persistence.xml`, you need to define your own `@Bean` of
type `LocalEntityManagerFactoryBean` (with an ID of '`entityManagerFactory`') and set the
persistence unit name there.
See

Loading…
Cancel
Save