案例用的是proxool-0.8.3.jar,一般通过MyEclipse配置的SSH都会包含这个jar,如果没有,就去网上搜下
下载导入就好了。
二、新建Proxool配置文件
[html]
< xml version="1.0" encoding="UTF-8" >
三、修改Hibernate配置文件
[html]
< xml version='1.0' encoding='UTF-8' >
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
主要配置是这四句话:
[html]
如果你的hibernate是在applicationContext.xml中配置的,可以对上面的配置做相应的更改
或者改成外部文件配置,在applicationContext.xml加入下面的代码
[html]
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
value="classpath:hibernate.cfg.xml">
四、修改Web.xml配置文件
[html]
注:xmlFile名字不要修改哦