spring
gzc_870301
这个作者很懒,什么都没留下…
展开
-
springmvc定时任务
1.在SpringMVC配置文件中添加 xmlns:task="http://www.springframework.org/schema/task" http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd 2、配置任务扫描 ...原创 2018-12-18 11:50:14 · 180 阅读 · 0 评论 -
ThreadPoolTaskScheduler-定时任务动态配置执行
需求:同一个定时任务,可能会在不同的时间去执行,人工可以配置 @Component public class TimerTaskDynamicCron implements InitializingBean { private static Logger logger = LoggerFactory.getLogger(TimerTaskDynamicCron.class); ...原创 2020-03-12 11:19:14 · 2367 阅读 · 0 评论 -
aop+注解 记录操作日志
自定义注解: @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface OperateHis { int operateType() default 0; } 切面: @Aspect @Component public class Operate...原创 2018-04-27 15:00:19 · 221 阅读 · 0 评论