随笔分类 - spring
摘要:2013-11-05 15:25:421首先在applicationContext.xml中引入1 6 --> 2打开定时器开关不使用注解时, -->3编写任务实例使用注解时在类头部添加@Component 方法头部添加@Scheduledpackage com.test.task;import java.text.SimpleDateFormat;import java.util.Date;import org.springframework.scheduling.annota...
阅读全文
摘要:一 setter方法注入配置文件如下:<bean id="helloAction" class="org.yoo.action.SpringSetterHelloAction"> <!-- setter injection using the nested <ref/> element --> <property name="helloservice"><ref bean="helloService"/></property> <!--可
阅读全文

浙公网安备 33010602011771号