06 2018 档案

摘要:可以用线程来做,每隔几秒开一个线程代码如下 public void runTask() { final long timeInterval = 120000;// 两分钟运行一次 final ThreadService threadService = new ThreadService(); Run 阅读全文
posted @ 2018-06-27 15:47 小小飞侠 阅读(8704) 评论(3) 推荐(0) 编辑
摘要:1 2 3 4 DefaultTransactionDefinition def = new DefaultTransactionDefinition(); TransactionStatus status = txManager.getTransaction(def); try{ for(''') 阅读全文
posted @ 2018-06-02 11:18 小小飞侠 阅读(307) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示