摘要: @component (把普通pojo实例化到spring容器中,相当于配置文件中的 注意事项: 1、spring的@Scheduled注解 需要写在实现方法上 2、 定时器的任务方法不能有返回值(如果有返回值,spring初始化的时候会告诉你有个错误、需要设定一个proxytargetclass的 阅读全文
posted @ 2018-05-02 10:37 式微胡不归 阅读(171) 评论(0) 推荐(0) 编辑