struts2.1+spring2.5+hibernate3.3整合之第一步(spring2.5+hibernate3.3)
需要的.jar文件: spring框架下的包:
hibernate框架下的包:
配置文件beans.xml:
<context:component-scan base-package="cn.com"/> cn/com/bean/User.hbm.xml hibernate.dialect=org.hibernate.dialect.MySQL5Dialect hibernate.hbm2ddl.auto=update hibernate.show_sql=false hibernate.format_sql=false <tx:annotation-driven transaction-manager="txManager"/>
用来测试生成表的o/m映射文件User.hbm.xml