会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JasonKong
博客园
首页
新随笔
联系
管理
订阅
2021年10月11日
自定义多数据源连接池
摘要: package com.eureka.dataplatform.serviceapi.config.JdbcConnectionConfig;import com.eureka.dataplatform.common.enums.DWTypeEnum;import com.eureka.datapl
阅读全文
posted @ 2021-10-11 18:10 JasonKong
阅读(469)
评论(0)
推荐(0)
2020年12月8日
springboot使用rest-high-level-client集成elasticsearch 7.5.1
摘要: springboot使用rest-high-level-client集成elasticsearch 7.5.1 添加pom <!--elasticsearch--> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactI
阅读全文
posted @ 2020-12-08 17:54 JasonKong
阅读(705)
评论(0)
推荐(0)
2020年10月23日
vue内嵌iframe跨域通信
摘要: 1、Vue组件中如何引入iframe? <template> <div class="act-form"> <iframe :src="src"></iframe> </div> </template> <script> export default { data () { return { src
阅读全文
posted @ 2020-10-23 10:01 JasonKong
阅读(2070)
评论(2)
推荐(0)
2019年10月31日
MySQL查询优化:连接查询排序limit(join、order by、limit语句)
摘要: 本文链接:https://blog.csdn.net/xiao__gui/article/details/8616224不知道有没有人碰到过这样恶心的问题:两张表连接查询并limit,SQL效率很高,但是加上order by以后,语句的执行时间变的巨长,效率巨低。 情况是这么一个情况:现在有两张表,
阅读全文
posted @ 2019-10-31 10:27 JasonKong
阅读(1987)
评论(1)
推荐(0)
2019年9月9日
springMVC 接收数组参数,mybatis 接收数组参数,mybatis批量插入/批量删除案例
摘要: public int setPrivilegeForUser(Integer[] privIds, Integer userId) { Map<String, Object> map = new HashMap<>(); map.put("privIds", privIds); map.put("u
阅读全文
posted @ 2019-09-09 11:51 JasonKong
阅读(703)
评论(0)
推荐(0)
2019年9月3日
利用lambda表达式对map集合过滤求和
摘要: Long messageTask = taskResult.stream().filter(e -> e.get("taskTypeId").toString().equals("202")|| e.get("taskTypeId").toString().equals("206")) .colle
阅读全文
posted @ 2019-09-03 18:34 JasonKong
阅读(5357)
评论(1)
推荐(0)
2019年8月30日
java8对集合的处理
摘要: public static void main(String[] args) { List<Student> list = Lists.newArrayList(); list.add(new Student("测试", "男", 18)); list.add(new Student("开发", "
阅读全文
posted @ 2019-08-30 10:39 JasonKong
阅读(1546)
评论(0)
推荐(0)
2019年7月15日
java8利用lambda表达式对map集合进行分组求和,求最大值,平均值
摘要: java8利用lambda表达式对map集合进行分组求和,求最大值,平均值 List<Map<String,Object>> counts = cardMapper.getCount(map);//查询数据库得到的map集合List<Map<String,Object>> result =new A
阅读全文
posted @ 2019-07-15 14:26 JasonKong
阅读(13388)
评论(1)
推荐(0)
Java用freemarker导出word
摘要: 1.先用word制作一个模版 2.将文件存为.xml格式 3.打开xml文件,将模版中需要替换的地方外面加上${} 表格的添加方式:在<w:tr>外面加上<#list rows as list>, 在需要替换的地方改为${list.} 4.改完后,将文件存在沸ftl格式保存 java代码如下: 模版
阅读全文
posted @ 2019-07-15 14:25 JasonKong
阅读(489)
评论(0)
推荐(0)
公告