随笔分类 -  Spring

摘要:service中未带事务的方法调用了自身带事务的方法时,按下面写法数据是提交不了的。 public String getMaxSystemVersionNo() { SystemVersion version = systemVersionDao.getMaxSystemVersion(); ver 阅读全文
posted @ 2016-12-23 11:21 wangliyue 阅读(292) 评论(0) 推荐(0)
摘要:Aspectj切入点语法定义在使用spring框架配置AOP的时候,不管是通过XML配置文件还是注解的方式都需要定义pointcut"切入点"例如定义切入点表达式 execution (* com.sample.service.impl..*.*(..))execution()是最常用的切点函数,其... 阅读全文
posted @ 2015-10-10 10:39 wangliyue 阅读(199) 评论(0) 推荐(0)