SSH:spring,struts2,hibernate.
第一步:整合hibernate的核心包版本号:5.2.12.Final;
配置文件名:hibernate.cfg.xml;
主要内容:数据库连接信息,show_sql,format_sql,关联映射文件
第二步:配置spring
1.applicationContext-public.xml(单例模式)
(1).引入db.properties
<
SSH:spring,struts2,hibernate.
第一步:整合hibernate的核心包版本号:5.2.12.Final;
配置文件名:hibernate.cfg.xml;
主要内容:数据库连接信息,show_sql,format_sql,关联映射文件
第二步:配置spring
1.applicationContext-public.xml(单例模式)
(1).引入db.properties
<