Does Spring Boot Need Persistence Xml?
67.8 Use a Traditional Persistence. Spring Doesn't Require the Use of Xml to Configure the Jpa Provider, and Spring Boot Assumes You Want to Take Advantage of...
Does spring boot require persistence xml?
Starting with Spring 3.1, the persistence. xml is no longer necessary. The LocalContainerEntityManagerFactoryBean now supports a packagesToScan property where the packages to scan for @Entity classes can be specified. This file was the last piece of XML we need to remove.
Is persistence xml required?
Persistence Unit
The persistence. xml configuration file is used to configure a given JPA Persistence Unit. The Persistence Unit defines all the metadata required to bootstrap an EntityManagerFactory , like entity mappings, data source, and transaction settings, as well as JPA provider configuration properties.