Skip to content

Commit d9beafa

Browse files
committed
Merge branch '1.5.x'
2 parents 006dece + 4d4b91a commit d9beafa

File tree

1 file changed

+3
-4
lines changed
  • spring-boot-project/spring-boot-docs/src/main/asciidoc

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,10 +1930,9 @@ as shown in the following example:
19301930

19311931
[[howto-use-traditional-persistence-xml]]
19321932
=== Use a Traditional `persistence.xml` File
1933-
Spring does not require the use of XML to configure the JPA provider, and Spring Boot
1934-
assumes you want to take advantage of that feature. If you prefer to use
1935-
`persistence.xml`, you need to define your own `@Bean` of type
1936-
`LocalEntityManagerFactoryBean` (with an ID of '`entityManagerFactory`') and set the
1933+
Spring Boot will not search for or use a `META-INF/persistence.xml` by default. If you
1934+
prefer to use a traditional `persistence.xml`, you need to define your own `@Bean` of
1935+
type `LocalEntityManagerFactoryBean` (with an ID of '`entityManagerFactory`') and set the
19371936
persistence unit name there.
19381937

19391938
See

0 commit comments

Comments
 (0)