摘要:
http://www.360doc.com/content/14/1013/15/5054188_416570097.shtml 阅读全文
posted @ 2017-07-04 18:26
ConfidentLiu
阅读(107)
评论(0)
推荐(0)
摘要:
Spring(JdbcTemplate.class)中的queryForMap()、queryForObject()、queryForLong()、queryForInt()等方法都会去调用public static Object requiredSingleResult(Collection re 阅读全文
posted @ 2017-07-04 17:58
ConfidentLiu
阅读(4453)
评论(0)
推荐(0)
摘要:
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在nu 阅读全文
posted @ 2017-07-04 13:44
ConfidentLiu
阅读(168)
评论(0)
推荐(0)
摘要:
1. 把java 对象列表转换为json对象数组,并转为字符串 复制代码 代码如下: JSONArray array = JSONArray.fromObject(userlist); String jsonstr = array.toString(); 2.把java对象转换成json对象,并转化 阅读全文
posted @ 2017-07-04 13:15
ConfidentLiu
阅读(7075)
评论(0)
推荐(0)

浙公网安备 33010602011771号