![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DAO
文章平均质量分 82
tianlang519241
沙舟狼客IT工作室,望大家多多支持!!!!!!!!
展开
-
spring事务控制
package dao;import java.io.Serializable;import java.util.List;import org.springframework.transaction.annotation.Isolation;import org.springframework.transaction.annotation.Propagation;im原创 2017-04-07 10:34:32 · 198 阅读 · 0 评论 -
spring的HibernateDaoSupport类的用法
package dao.impl;import java.io.Serializable;import java.sql.SQLException;import java.util.List;import org.hibernate.HibernateException;import org.hibernate.Query;import org.hibernate.原创 2017-04-07 10:34:53 · 313 阅读 · 0 评论 -
spring的通知(advice)
spring的通知(advice)分为方法通知和异常通知;方法通知又有方法调用前(MethodBeforeAdvice),调用中(MethodInterceptor),调用后(AfterReturningAdvice)三种,这三种实现其接口即可;但异常通知在实现ThrowsAdvice后还需手动加入代码,这一点我就不知道为什吗了,哪位高手可以解释一下;下面是我的实现代码; 通知代码:原创 2017-04-07 10:35:30 · 375 阅读 · 0 评论 -
spring事务配置
1、一个dao一个事务管理 PROPAGETION_PRQUIRED 2、多个类共用一个事务管理 PROPAGETION_PRQUIRED 3、用拦截器拦截事务原创 2017-04-07 10:35:49 · 150 阅读 · 0 评论 -
spring2.5注解切面类出错,为什么?在线等
beans.xml配置 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="原创 2017-04-07 10:36:02 · 226 阅读 · 0 评论