![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring注解
东不木
这个作者很懒,什么都没留下…
展开
-
Spring-@Scheduled
@Scheduled:定时任务的注解定时任务的配置:1.xml配置添加task的xml的命名空间xmlns:task="http://www.springframework.org/schema/task" http://www.springframework.org/schema/task http://www.springframework.org/schema原创 2016-08-24 18:29:32 · 354 阅读 · 0 评论 -
Spring-@ModelAttribute
1.作用于方法上。例如:@ModelAttribute("driverTest")publicDriver initDriver(){returnsetDriver();//这里调用其他方法,无需管}//司机复职@RequestMapping("reinstatementDriver")@ResponseBodypublicMap原创 2016-08-25 14:42:07 · 485 阅读 · 0 评论