日期:2014-05-20  浏览次数:20633 次

这种情况如何写spring
public class CustomerDaoImpl extends BaseDaoImpl<Customer> implements CustomerDao {

}

------解决方案--------------------
不明白楼主在说什么
------解决方案--------------------
其实你不用写spring的,在那个applicationContext.xml里面配置一下就行了,用aop就行,他会自动处理的,在service里面配置拦截,比如你一个service里面可以有2个操作,但是一个没成功,他就回滚了。

------解决方案--------------------
接口接入,你這個是實現類,注入什么?
------解决方案--------------------
你贴出来的代表不了什么的,看你类中用的实例变量,private inferDao inferDaoImpl;那就注入这个类,用那个写那个就行了!