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 · 173 阅读 · 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 · 137 阅读 · 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 · 420 阅读 · 0 评论
分享