ITeye博客

struts2.1+spring2.5+hibernate3.3整合之第一步(spring2.5+hibernate3.3)

yaoweinan · 2010-07-31 08:10 · java ee · spring · struts · hibernate · 企业架构 · Markdown

需要的.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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。