- 博客(6)
- 问答 (3)
- 收藏
- 关注
转载 JAVA随机排序洗牌算法
public class Card { public String num; public String suit; Card(String n,String s) { this.num=n; this.suit=s; } public String toString() { String ...
2018-11-08 18:29:07
866
翻译 FeignClient的请求错误原因查看
If one needs access to the cause that made the fallback trigger, one can use the fallbackFactory attribute inside @FeignClient.@FeignClient(name = "hello", fallbackFactory = HystrixClientFal
2017-12-07 15:40:17
7614
原创 Sql Server上分组,并让列的所有值全部显示
SELECT stuff( ( SELECT ',' + a.要展示的字段 FROM the_table a WHERE a.字段 = temp.字段 FOR xml path ('') ), 1, 1, '' ) AS 列名FROM the_table tempGROUP BY temp.分组字段 ...
2017-05-31 17:11:50
4366
原创 Native SQL(原生SQL)当中的条件查询
在日常编码中,动态条件查询已经成了家常便饭。 在 Ibatis 和 Mybatis 中有可以使用,hibernate中可以判断添加查询条件。而原生SQL大多数办法是拼接字符串,我提供一种其他思路方法。SELECT * FROM TABLEWHERE (查询参数 IS NULL OR 列名 = 查询参数)当参数为空(NULL)时,查询全部。当参数有值时,查询 字段值=参数 的数据
2017-05-26 10:34:34
2909
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人