摘要: 1 安装studio是找不到npm命令 :Install failed for the reason: the nodejs(>v10.16.0) required 将Node.js解压后的内容拷贝到/opt目录下,然后在/opt下执行 ln -s node-v14.16.0-linux-x64 n 阅读全文
posted @ 2022-04-14 17:26 杨吃羊 阅读(131) 评论(0) 推荐(0)
摘要: 结合公司实际业务记录这次的导数流程 1 //注册到执行器工厂:添加“@JobHandler(value="自定义jobhandler名称")”注解,注解value值对应的是调度中心新建任务的JobHandler属性的值。 2 @JobHandler(value = "BiddingHandler") 阅读全文
posted @ 2022-04-08 11:00 杨吃羊 阅读(290) 评论(0) 推荐(0)
摘要: 安装es-head前提要安装好 node.js和git node -v, npm -v,git --version 这三个命令都有版本返回就ok 下载命令: git clone https://github.com/mobz/elasticsearch-head.git进入下载目录cd elasti 阅读全文
posted @ 2022-04-06 16:43 杨吃羊 阅读(1804) 评论(0) 推荐(0)
摘要: es与mysql的对应关系 mysql: 表 行 字段es: 索引 document field es6之前一个index可以设置多个type,es6每个索引只能有一个type,es7的索引的type只能是_doc,es7以后就没有type了,es去掉type是因为底层lucene 并没有type的 阅读全文
posted @ 2022-04-06 11:48 杨吃羊 阅读(107) 评论(0) 推荐(0)
摘要: select * from test; select * from test2 select * from test inner join test2 on test.projectId=test2.projectId 共4条记录,test2里有两条projectId=1的,所以连接出两条,主表te 阅读全文
posted @ 2022-02-09 16:26 杨吃羊 阅读(110) 评论(0) 推荐(0)
摘要: list.stream().collect(Collectors.toMap(xxx)): list.stream():把list转成流,list.stream().collect():把流转成集合,具体是map,还是list/set就看参数是Collectors.toMap还是Collectors 阅读全文
posted @ 2022-01-27 11:52 杨吃羊 阅读(7545) 评论(0) 推荐(0)
摘要: List里是 JSONObject ,要根据JSONObject 里的某个key值对list排序 Collections.sort(dataList,new Comparator<JSONObject>(){ //将list根据totalnum降序排序 @Override public int co 阅读全文
posted @ 2021-12-16 11:14 杨吃羊 阅读(56) 评论(0) 推荐(0)
摘要: 在上段文字中提取税额的金额: //创建正则模版 String REGEX="(税额|税款)\\d+.?\\d+(元|万元|万)?"; //绑定模版 Pattern p=Pattern.compile(REGEX); //content为文本 Matcher m=p.matcher(content); 阅读全文
posted @ 2021-11-05 14:04 杨吃羊 阅读(1270) 评论(0) 推荐(0)
摘要: 先看postman的请求,图1用于给@RequestParam 发参数,图2用于给 @RequestBody发参数 新建User类用于接收@RequestBody的参数 package com.seeyii.entity; import java.util.Arrays; /** * @Packag 阅读全文
posted @ 2021-09-18 15:47 杨吃羊 阅读(453) 评论(0) 推荐(0)
摘要: 用网上抄的小例子 exists的执行 顺序是外查询的一条记录带入exists子查询里,如果exists子查询有记录返回,那这条记录就会保留,如果用的是not exists,那这条记录不会保留. 优化实例 compete 表和product 表关联,compete inner join product 阅读全文
posted @ 2021-09-02 14:59 杨吃羊 阅读(297) 评论(0) 推荐(0)