摘要:
抽取的工具类 HibernateUtils.java 注意1:调用getCurrentSession方法必须配合主配置中的一个属性使用 <property name="hibernate.current_session_context_class">thread</property> 注意2:通过g 阅读全文
posted @ 2017-07-24 17:04
发福大叔
阅读(193)
评论(0)
推荐(0)
摘要:
com.mysql.jdbc.Driver jdbc:mysql:///hibernate_32 root 1234 true ... 阅读全文
posted @ 2017-07-24 16:12
发福大叔
阅读(161)
评论(0)
推荐(0)
摘要:
HelloAction.java struts.xml 阅读全文
posted @ 2017-07-24 15:56
发福大叔
阅读(120)
评论(0)
推荐(0)
摘要:
Customer.java Customer.hbm.xml 阅读全文
posted @ 2017-07-24 15:47
发福大叔
阅读(416)
评论(0)
推荐(0)
摘要:
2、修改struts2的常量配置三种方法 第一种是在struts.xml 的constant标签下配置 第二种方式在src下新建struts.properties文件,在里面写常量 第三种是在web.xml下配置 加载顺序第一种>第二种>第三种,真正开发一般是在第一种struts.xml中配置常量 阅读全文
posted @ 2017-07-24 12:00
发福大叔
阅读(219)
评论(0)
推荐(0)

浙公网安备 33010602011771号