The header file in the xml of Spring Data jpa reports an error
The content of element 'persistence' is not complete. One of '
XML error in jpa
The error message is shown in the figure below:
Reason: A node needs to be configured in the jpa constraint.
The solution is shown in the figure below:
<persistence-unit name="myJpa" transaction-type="RESOURCE_LOCAL">
<!--jpa的实现方式-->
<!--数据库信息-->
<!--可选配置:配置jpa实现方式的配置信息-->
</persistence-unit>