- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 opsForHash().scan方法中的cursor关闭
使用Cursor<Map.Entry<Object, Object>> cursor = jsonRedisTemplate.opsForHash() .scan(key, ScanOptions.scanOptions().match("123“).build());方法时,使用完cursor 需要关闭,否则将会一致占用连接,最终导致线程池崩溃。需要直接调用cursor.close()。try (Cursor<Map.Entry<Object, Object&g.
2020-12-05 15:53:46
1740
原创 json的一些格式转换
1. JSONArray的遍历,并获取其中的一个参数JSONArray arr= eventData..getJSONArray("data");List<String> list=new ArrayList<>();Iterator<Object> ite=arr.iterator();while (ite.hasNext()){ JSONObject obj=(JSONObject)ite.next(); list.add(obj.getS
2020-11-12 17:13:38
277
原创 Angularjs中使用ng-repeat动态生成radio选择时选中显示多行只显示选中一行
<table class=""> <tr ng-repeat=" conf in confs track by $index" ng-init="tIndex = $index"> <td > write <input type="radio" value="rw" ng-checked="$p...
2020-03-27 13:38:10
659
原创 angularjs中ui-select的使用总结
ui-select的选择有两种情况:单个的和multiple1,单个的<ui-select ng-model="command.value"> <ui-select-match> <span ng-bind="$select.selected.name"></span> </ui-select-matc...
2020-03-06 16:22:10
1788
原创 angularjs中directive的传值
angularjs中directive值需要传值时,必须要小写!!!!比如:<dire-test username="name1">可以正确传值,但是:<dire-test userName="name1">不能正确传值,获取userName的值是:undefined。...
2019-05-14 10:44:21
1026
原创 centos7环境下在myEclipse中安装jad反编译插件
1.下载jad (for linux)2.下载net.sf.jadclipse_3.3.0.jar3.将net.sf.jadclipse_3.3.0.jar copy到 xxx/myEclipse/dropins 下4.将下载后的jad copy到 xxx/jad下5.cd 到xxx/jad ,执行 ./jad ,若输出版本和帮助信息,则说明jad没有问题6.带开myEclipse,点击:Wind...
2018-04-20 10:56:27
687
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅