File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1930,10 +1930,9 @@ as shown in the following example:
1930
1930
1931
1931
[[howto-use-traditional-persistence-xml]]
1932
1932
=== 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
1937
1936
persistence unit name there.
1938
1937
1939
1938
See
You can’t perform that action at this time.
0 commit comments