共 5 篇文章 |
|
-- 自动代理 --><bean id="autoproxy"class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"><!-- 可以是Service或DAO层(最好是针对业务层*Service) --><property name="beanNames"><list><value>*Service</value></list></propert... 阅1199 转2 评0 公众公开 13-12-09 15:03 |
例如,<aop:aspect>配置如下Java代码 <aop:config> <aop:aspect id="TestAspect" ref="aspectBean"> <aop:pointcut id="businessService" expression="execution(* com.spring.service.*.*(String,..)) and args(msg,..)" /> &l... 阅128 转1 评0 公众公开 13-01-18 17:24 |
<aop:config> <aop:pointcut id="canyin" expression="execution(* com.laphone.base.baseservice.*.*(..)) ||execution(* com.laphone.canyin.*.service.*.*(..)) || execution(* com.laphone.canyin.*.*.service.*.*(..))"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="canyin&... 阅17717 转50 评0 公众公开 12-11-09 18:04 |
Spring中Quartz的配置Quartz是一个强大的企业级任务调度框架,Spring中继承并简化了Quartz,下面就看看在Spring中怎样配置Quartz:首先我们来写一个被调度的类: package com.kay.quartz;public class QuartzJob{问号(?)字符和字母 L 字符只有在月内日期和周内日期字段中可用。在月内日期字段中的字母(W)字符把执行安排在最靠近指定值的工... 阅90 转1 评0 公众公开 12-10-11 15:18 |
因为在配置spring的bean是忘了写scope="prototype" 所以每次添加时都显示最后一次访问过的记录,scope="prototype" 会在该类型的对象被请求 时创建一个新的action对象。singleton模式指的是对某个对象的完全共享,包括代码空间和数据空间,说白了,如果一个类是singleton的,假如这个类有成员变量,那么这个成员变量的值是... 阅153 转2 评0 公众公开 12-06-29 12:08 |