上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 0 0 12 * * ? 每天中午十二点触发0 5 3 * * ? 每天3点5分执行*/5 * * * * ? 每隔5秒执行一次 0 */1 * * * ? 每隔1分钟执行一次0 0 1 * * ? 每天凌晨1点执行一次0 0 1 1 * ? 每月1号凌晨1点执行一次0 0 23 L * ? 每月最 阅读全文
posted @ 2020-01-13 17:49 忧伤还是快乐EL 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package cn.com.rivercloud.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; i 阅读全文
posted @ 2020-01-13 17:16 忧伤还是快乐EL 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 更改时间,然后update更新 windows: "cmd /c w32tm /config /update /manualpeerlist:time-a.nist.gov" "cmd /c w32tm /resync" linux: "ntpdate time-a.nist.gov" "ntpda 阅读全文
posted @ 2020-01-13 15:14 忧伤还是快乐EL 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 需求:springboot 启动后自动执行某些代码,初始化数据,并将数据放到 servletContext 中。 首先,不可使用 ServletContextListener 即不能用 @WebListener ,因为 servlet 容器初始化后,spring 并未初始化完毕,不能使用 @Auto 阅读全文
posted @ 2020-01-10 17:08 忧伤还是快乐EL 阅读(1876) 评论(0) 推荐(0) 编辑
摘要: private static List<Map<String,Object>> objectToMap(Object object,String type) throws IllegalAccessException { List<Map<String,Object>> list = new Arr 阅读全文
posted @ 2020-01-10 16:56 忧伤还是快乐EL 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: 引文## 在写一个服务端程序时(Web Server或者文件服务器),文件下载是一个基本功能。这时候服务端的任务是:将服务端主机磁盘中的文件不做修改地从已连接的socket发出去,我们通常用下面的代码完成: while((n = read(diskfd, buf, BUF_SIZE)) > 0) w 阅读全文
posted @ 2020-01-10 16:34 忧伤还是快乐EL 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 读取/写入: Properties prop = new Properties(); String savePath = ResourceUtils.getURL("csmsystem/src/main/resources/sysconf").getPath(); String systemConf 阅读全文
posted @ 2020-01-10 16:16 忧伤还是快乐EL 阅读(215) 评论(0) 推荐(0) 编辑
摘要: @Autowired注入的bean都为null,然后试了各种方法,什么生命周期啥的,试了各种,还是失败了; 最终请教大哥,说是可以这样: 调用类:@Autowired private UserService userService; if (null==userService) { userServ 阅读全文
posted @ 2019-12-30 17:43 忧伤还是快乐EL 阅读(685) 评论(0) 推荐(0) 编辑
摘要: https://es.quanke.name/document-apis/delete-api.html 阅读全文
posted @ 2019-12-13 14:12 忧伤还是快乐EL 阅读(633) 评论(0) 推荐(0) 编辑
摘要: Cnd cnd = Cnd.where("user_id", "=", userId) .and("current_id", "=", currentLineId) .and("device_id", "=", deviceId) .and("status","=",1); if (startTim 阅读全文
posted @ 2019-12-12 11:14 忧伤还是快乐EL 阅读(292) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页