linux文件操作之rm命令
2015-10-08 23:17
603 查看
persistence.xml
<persistence-unit name="emcs" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<non-jta-data-source></non-jta-data-source>
<properties>
<property name="hibernate.max_fetch_depth" value="3" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
</properties>
</persistence-unit>
</persistence>
applicationContext.xml
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/mysql_emcs" />使用数据源
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="persistenceUnitName" value="emcs" />
</bean>
web.xml
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">必须是2.4
<persistence-unit name="emcs" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<non-jta-data-source></non-jta-data-source>
<properties>
<property name="hibernate.max_fetch_depth" value="3" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
</properties>
</persistence-unit>
</persistence>
applicationContext.xml
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/mysql_emcs" />使用数据源
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="persistenceUnitName" value="emcs" />
</bean>
web.xml
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">必须是2.4
相关文章推荐
- linux 中android源码中git文件删了怎么办
- linux自动备份
- CentOS 7 最小安装 功能扩展
- Linux终端编程--termios
- 7天hadoop(二)linux的常用命令
- linux下编译C程序
- Android和Linux kernel版本对应表
- 【转】每天一个linux命令(1):ls命令
- linux sizeof 详解
- linux下socket编程(udp)
- 制作网页3---XAMPP的配置(环境是Linux Ubuntu)
- Linux内核模块指南(第十一章===>附录)。。。翻译完。。。
- 【Linux命令与工具】系统资源查看——free、uname、dmesg以及netstat
- S3C2440上移植内核之编译Linux2.6.31出现问题
- linux 初学者之进程控制
- Linux性能测试strace命令
- 基本操作Linux系统服务器
- Linux下DM9000网卡驱动实验
- linux 编译内核[scripts/kconfig/dochecklxdialog] 错误
- Linux系统调用和ANSI C文件操作的区别