梦相随1006

版权归 梦相随1006 所有,未经 https://www.cnblogs.com/xin1006 作者许可,严禁转载

导航

2013年10月24日 #

Spring-Struts2-基本集成

摘要: 步骤: 1,导入struts2的相关jar包(检查是否有冲突的包,即同一个包有不同的几个版本存在) 2,导入struts2和spring的整合包 struts2-spring-plugin-2.3.4.jar 3,配置struts.xml文件(打开struts2的用户向导帮助可以找到如何集成spring) 4, 创建Action/** * 此时等于用Spring创建了userAction对象,在struts.xml配置文件中写action的class的时候 * 就不能写类,而应该写userAction这个对象 */@Controller("userAction")5,重新配 阅读全文

posted @ 2013-10-24 18:56 梦相随1006 阅读(334) 评论(0) 推荐(0) 编辑

Spring-hibernate-BaseDao

摘要: --> product.hbm.xml --> --> hibernate.dialect=org.hibernate.dialect.MySQLDialect hibernate.show_sql=true hibernate.hbm2ddl.auto... 阅读全文

posted @ 2013-10-24 14:12 梦相随1006 阅读(1161) 评论(0) 推荐(0) 编辑