摘要:
把一个applicationContext.xml拆分(还可以再分出action部分和tx事务部分) 1、dao部分 2、service部分 3、基本类 阅读全文
posted @ 2015-11-04 11:55
夏末、初秋
阅读(1144)
评论(0)
推荐(0)
摘要:
在biz业务处理类实现类中/** * 用户业务类,实现对User功能的业务管理 */@Service("userBiz")public class UserBiz implements IUserBiz { @Autowired // 默认按类型匹配 // @Qualifier("us... 阅读全文
posted @ 2015-11-04 11:20
夏末、初秋
阅读(157)
评论(0)
推荐(0)
摘要:
java:comp/env/jdbc/jboa 在tomcat下的context.xml添加--数据库连接 阅读全文
posted @ 2015-11-04 10:08
夏末、初秋
阅读(169)
评论(0)
推荐(0)
摘要:
... 阅读全文
posted @ 2015-11-04 09:18
夏末、初秋
阅读(327)
评论(0)
推荐(0)
摘要:
添加tx和context1,首先,将action,service,dao所有层的所有类整到容器里面;在Dao上 @Respository("employeeDao"),去掉继承HibernateDaoSupport 添加privateHibernateTemplatehibernateTemp... 阅读全文
posted @ 2015-11-04 09:07
夏末、初秋
阅读(612)
评论(0)
推荐(0)
摘要:
classpath:jdbc.properties 现在常用的开源数据连接池主要有c3p0、dbcp和proxool三种,其中:hibernate开发组推荐使用c3p0;spring... 阅读全文
posted @ 2015-11-04 08:55
夏末、初秋
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号