![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
API
文章平均质量分 77
BOY
这个作者很懒,什么都没留下…
展开
-
org.json
一:构造1JSONObject jsonObject = new JSONObject(); // 直接构造一个空的JSONObject 2.JSONObject jsonObject = new JSONObject("{usrename:gogole,password:xxxx}")// 以字符串构造3.JSONObject jsonObject = new JSONObject(原创 2012-11-03 20:35:52 · 1699 阅读 · 0 评论 -
jdbc
Connection1.对于得到数据库连接Connection后,要主动设置事务机制与事务提交connectoin.getAutoCommit(false);connectoin.setTransactionIsolation(int)2.如果在设置了setAutoCommit(false) 后,在execute(sql)后要调用 connection.commit()不然原创 2012-11-04 10:28:58 · 501 阅读 · 0 评论 -
定时工具 quartz
可以进行心跳操作,非常方便,如:每周1 、3 、5 进行某个操作 package org.quartz.examples.example3;import static org.quartz.CronScheduleBuilder.cronSchedule;import static org.quartz.JobBuilder.newJob;import static org.quartz.原创 2013-06-07 17:07:26 · 770 阅读 · 0 评论