The XML header file in jpa reports an error

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:
insert image description here
Reason: A node needs to be configured in the jpa constraint.
The solution is shown in the figure below:
insert image description here

<persistence-unit name="myJpa" transaction-type="RESOURCE_LOCAL">
    <!--jpa的实现方式-->
    <!--数据库信息-->
    <!--可选配置:配置jpa实现方式的配置信息-->
</persistence-unit>

Guess you like

Origin blog.csdn.net/qq_40943230/article/details/105472464