上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 63 下一页
  2023年6月5日
摘要: Expected BEGIN_OBJECT but was STRING at line 1 column 2 path $ syntax error, expect {, actual string, pos 0, fastjson-version 1.2.62 syntax error, exp 阅读全文
posted @ 2023-06-05 22:13 oktokeep 阅读(3696) 评论(2) 推荐(0)
摘要: public static String doPostForJson(String url, String json,String byteAuthorization) { RestTemplate restTemplate = new RestTemplate(); logger.info("re 阅读全文
posted @ 2023-06-05 22:05 oktokeep 阅读(421) 评论(0) 推荐(0)
摘要: es是通过符合条件的json记录找出来,本身并不是将数据中的记录filter过滤。es nestedQuery不是过滤的结果,是匹配的这条es记录,所以数组中的其他的记录也会查询出来1.方法1:可以在程序中对数组中的记录过滤。2.方法2:在数据初始化的时候,将数据严格查询符合条件的才初始化。 需求背 阅读全文
posted @ 2023-06-05 21:57 oktokeep 阅读(1678) 评论(2) 推荐(0)
  2023年5月5日
摘要: xxlJob端口号及故障转移设置,解决负载均衡调度任务执行 my.xxljob.executorPort = 1162 my.xxljob.executorAppName = myService-job-executor-fat1 ##xxlJob admin后台服务地址 my.xxljob.adm 阅读全文
posted @ 2023-05-05 18:04 oktokeep 阅读(1169) 评论(0) 推荐(0)
摘要: //如果使用Feign的客户端,请放开下列注释@EnableFeignClientsNo qualifying bean of type 'xx.xx.类' available //需要添加扫描的路径,可以定位到上层目录@EnableFeignClients({"com.xxx.feign"}) 阅读全文
posted @ 2023-05-05 17:49 oktokeep 阅读(206) 评论(1) 推荐(0)
  2023年4月22日
摘要: Math.ceil,Math.round,Math.floor区别 //向上取整 System.out.println("amt1=" + Math.ceil(71.01)); //四舍五入 System.out.println("amt2=" + Math.round(71.01)); //向下取 阅读全文
posted @ 2023-04-22 11:43 oktokeep 阅读(42) 评论(0) 推荐(0)
摘要: Java编码规范-字符串与Integer的比较,BigDecimal非空参数 package com.example.core.mydemo; import java.math.BigDecimal; public class IntTest { public static void main(St 阅读全文
posted @ 2023-04-22 11:41 oktokeep 阅读(64) 评论(1) 推荐(0)
  2023年4月11日
摘要: elasticsearch6.8 ik分词器需安装order_info_es/_analyze POST{ "analyzer": "ik_max_word", "text": "湖南省常德市"} ##未安装的报错{"error": {"root_cause": [{"type": "remote_ 阅读全文
posted @ 2023-04-11 00:14 oktokeep 阅读(150) 评论(0) 推荐(0)
  2023年4月10日
摘要: 关于Elasticsearch查找相关的问题汇总(match、match_phrase、query_string和term) 查询全部: { "query": { "match_all": {} } } 对应的 ​​QueryBuilder​​ Class 为 ​​MatchAllQueryBuil 阅读全文
posted @ 2023-04-10 23:52 oktokeep 阅读(798) 评论(2) 推荐(0)
摘要: es语法 rest api 模拟query 根据中文姓名搜索demo order_info_es/_doc/40094182abc GET order_info_es/_settings?pretty GET { "order_info_es": { "settings": { "index": { 阅读全文
posted @ 2023-04-10 23:51 oktokeep 阅读(76) 评论(1) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 63 下一页