
spring
天马流星拳~
这个作者很懒,什么都没留下…
展开
-
关于spring的AOP的理解
如上图所示:里面涉及到几个概念:Aspect、Advice、PointCut、joinPointAOP为Aspect Oriented Programming的缩写,意为:面向切面编程(也叫面向方面),可以通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。Cross cutting concern:在我们的程序中会存在一些类似于:安全性检查、事务、记原创 2012-04-07 17:12:14 · 574 阅读 · 0 评论 -
spring+ibatis事务配置
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation原创 2012-04-08 14:19:36 · 1870 阅读 · 2 评论 -
spring+ibatis tx:annotation配置
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:原创 2012-04-08 14:33:06 · 819 阅读 · 0 评论 -
spring+Hibernate配置
class="com.nsn.itil.common.annotation.ExtendedPropertyPlaceholderConfigurer">classpath:appconfig.properties destroy-method="close"> ${driverClassName}原创 2012-04-08 14:28:02 · 435 阅读 · 0 评论 -
current_session_context_class
平时在单独使用hibernate的时候,习惯于配置属性thread根据文档,这个是hibernate3.1以后的一个新扩展,目的在于可以让我们在某一个上下文环境(比如说当前线程)中可以通过SessionFactory.getCurrentSession()得到同一个session会话.后来当我们把spring,hibernate整合的时候,在spri转载 2012-04-08 16:16:43 · 1248 阅读 · 0 评论