![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
ganlisxn2
这个作者很懒,什么都没留下…
展开
-
代理Handler 通用类
public class ProxyHandler implements InvocationHandler { private Object target; public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; if(m...2009-03-31 17:54:21 · 116 阅读 · 0 评论 -
Spring Aop thorws 太好了
我研究了下AOP对 异常的统一处理,这个东西太好用了,可把系统异常颗粒度划分细,先来个接口public interface TestBean{ void test1()throws ClassNotFoundException; int test2(int a,int b);} 实现类:public class TestBeanImpl implements Test...2009-03-31 20:25:43 · 93 阅读 · 0 评论 -
spring管理 hibernate 事务冲突问题
废话不多说看看我的方法 try { Session session = this.getHibernateSession(); //Transaction tx = null; Query queryObject = null; String sql=null; //tx=session.beginTransaction(); sql = "update tco_sta...2008-10-30 11:56:16 · 350 阅读 · 0 评论