标签:load current color 如何 ica spring定时器 app question nbsp
学习了:https://zhidao.baidu.com/question/406212574.html
@Scheduled(cron = "0 0 */3 * * ?") // 3小时处理一次 public void updateData(){ System.out.println("*********************************schedule task"); WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext(); ServletContext context = webApplicationContext.getServletContext(); List<Tbl> tblList = tblMapper.getAll(); context.setAttribute("tbl", tblList); }
标签:load current color 如何 ica spring定时器 app question nbsp
原文地址:http://www.cnblogs.com/stono/p/7818250.html