Spring
习惯宁静
Hadoop大数据学习
展开
-
理解AOP
Aspect Oriented Programming 面向切面编程。解耦是程序员编码开发过程中一直追求的。AOP也是为了解耦所诞生。具体思想是:定义一个切面,在切面的纵向定义处理方法,处理完成之后,回到横向业务流。AOP 在Spring框架中被作为核心组成部分之一,的确Spring将AOP发挥到很强大的功能。最常见的就是事务控制。工作之余,对于使用的工具,不免需要了解其所以然。学习了一转载 2017-02-24 14:13:33 · 176 阅读 · 0 评论 -
Exception:No Session found for current thread
转载:原文地址Hibernate4 与 spring3 集成之后, 如果在取得session 的地方使用了getCurrentSession, 可能会报一个错:“No Session found for current thread”, 这个错误的原因,网上有很多解决办法, 但具体原因的分析,却没有多少, 这里转载一个原理分析:SessionFactory的getCurrentSe转载 2017-06-07 15:44:25 · 242 阅读 · 0 评论 -
Spring-AOP解析
Spring.xml配置文件<bean id="helloWorldService" class="cn.javass.spring.chapter6.service.impl.HelloWorldService"/><bean id="aspect" class="cn.javass.spring.chapter6.aop.HelloWorldAspect"/>翻译 2017-06-14 10:42:47 · 174 阅读 · 0 评论