好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Spring+JPA+MySQL的配置文件

欢迎进入Java社区论坛,与200万技术人员互动交流 >>进入 一直在整合spring+hibernate,今天整合一下JPA +Spring persistence.xml 默认放在 META-INF 目录下 Xml代码 persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.o

欢迎进入Java社区论坛,与200万技术人员互动交流 >>进入

一直在整合spring+hibernate,今天整合一下JPA +Spring

persistence.xml 默认放在 META-INF 目录下

Xml代码
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">

org.hibernate.ejb.HibernatePersistence
MyClass








view plaincopy to clipboardprint?
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">

org.hibernate.ejb.HibernatePersistence
MyClass







xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">

org.hibernate.ejb.HibernatePersistence
MyClass








applicationContext.xml

[1] [2]

查看更多关于Spring+JPA+MySQL的配置文件的详细内容...

  阅读:29次