自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (1)
  • 收藏
  • 关注

原创 mybatisplus->2.X版本升级为3.X版本问题整理

mybatisplus->2.X版本升级为3.X版本问题整理

2022-06-14 15:13:02 1102 1

原创 nacos启动提示:org.springframework.context.ApplicationContextException: Unable to start web server

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.context.Servle.

2022-02-23 13:56:32 2890

原创 spring cloud 整合elasticsearch 单个、批量添加文档

spring cloud 整合elasticsearch 单个、批量添加文档

2022-02-15 22:51:15 1399

原创 spring cloud 整合elasticsearch 创建索引支持ik中文分词和拼音分词

spring cloud 整合elasticsearch 创建索引

2022-02-11 11:50:18 1627

原创 ios上传App Store 提示ERROR ITMS-4236: “Invalid value ‘v1.1.26‘ for bundle_short_version_string“

ios 上传App strore 提示:苹果是不支持版本号带字母的版本号,所以将版本号改为1.1.26就好了

2022-01-26 15:53:16 1745

原创 ios上传App Store 提示ERROR ITMS-90060: “This bundle is invalid.

ios应用上传App Store 提示:ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '7.3.3.220125' in the Info.plist file at 'Payload/HBuilder.app' must be a period-separated list of at most three non-negative integers. Please fin

2022-01-26 15:48:04 2135

原创 spring cloud 集成elasticsearch 实现findByIds查询

我们使用elasticsearch常使用它的分词查询,但是因为业务需要也需要使用多id查询,elasticsearch提供了MultiGetRequest实现多ids,多索引查询:/** * 根据多个索引查询 */ public <T> List<T> findByIds(List<String> keys, Class<T> clazz) { RestHighLevelClient client=this.r

2022-01-25 10:04:44 2273

原创 spring cloud 集成elasticsearch 实现分词查询和模糊查询

使用elasticsearch 主要的一个场景就是分词查询,我以电商搜索商品为例:搜索“精华乳液套装”搜索引擎(ik分词器)会拆成 精华、乳液、套装分别去匹配字段,会根据匹配度计算分值条件组装 BoolQueryBuilder productNameIKBoolBuilder = QueryBuilders.boolQuery(); produ..

2022-01-20 16:54:01 2657

原创 spring cloud 集成elasticsearch 查询排序

elasticsearch 查询排序 调用 SearchSourceBuilder.sort方法sort(String name, SortOrder order)name:字段名SortOrder:SortOrder.DESC 倒序,SortOrder.ASC 正序代码如下:SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();SortBuilder sortBuilder = SortBuilder.

2022-01-19 18:53:11 1593

原创 mac idea java: java.lang.OutOfMemoryError: GC overhead limit exceeded

mac idea java: java.lang.OutOfMemoryError: GC overhead limit exceeded

2021-12-25 15:13:26 449 2

原创 status 400 reading TestFeignClient#findByIds(List)

status 400 reading TestFeignClient#findByIds(List)请求参数为 List<Long>,长度超过500,仔细看了下数据有很多重复,Set排重后长度50以内就OK了

2021-12-24 03:47:36 601

原创 this is incompatible with sql_mode=only_full_group_by

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'ps.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

2021-12-08 10:39:37 527

原创 mysql提示:Lock wait timeout exceeded; try restarting transaction

### Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.cj.jdbc.exceptions.MySQLTransactionRo.

2021-08-29 22:35:30 672

原创 Elasticsearch7.5 kibana _search 查询数据只返回10000条数据

查询全部数据只返回10000条,并没有返回实际的总数GET /index/_search{ "query": { "match_all": {} }}查询结果 :total=10000,但是想查询所有的数据,查了资料track_total_hits默认为false 最大10000条{ "took" : 1, "timed_out" : false, "_shards" : { "total" : 30, "successful" : 30,

2021-01-29 11:31:22 2457

原创 elasticsearch7.5 索引状态yellow问题解决

我的服务是windows单机服务并没有做集群。查看下目前索引的状态GET _cluster/health执行结果{ "cluster_name" : "dev", "status" : "yellow", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 36, "active_shards" : 36, "relo

2021-01-29 11:07:47 10884 1

原创 Load balancer does not have available server for client: springboot-service

搭建Zuul+HystrixZuul对外提供统一的服务入口,主要是用作网址重定向。还可以通过Filter实现过滤器。配合Hystrix实现熔断器,当服务宕机时可以做异常处理。部分代码:package common.fallbackProvider;import java.io.ByteArrayInputStream;import java.io.IOException;import java.io.InputStream;import org.springframe...

2020-12-17 18:53:15 473

原创 java.lang.IllegalStateException: No instances available for springboot-service

在使用Ribbon+RestTemplate出现java.lang.IllegalStateException: No instances available for springboot-service,负载没有找到对应的名称的微服务,网上找了很多解决方案大概有以下几种:1.服务命名问题,命名不能使用_、不能太长等,但是可以使用-。2.访问内部注册中心的服务使用IP访问,比如:127.0.0.1。代码如下,如果负载不是内部服务去掉@LoadBalanced注解使用IP地址访问 @Bea

2020-12-17 18:31:40 1150

原创 JAVA代码优化___随机数Random和SecureRandom

Java API中提供了java.util.Random类实现PRNG(),该PRNG是可移植和可重复的,Random类中实现的随机算法是伪随机,也就是有规则的随机,如果两个java.util.Random类的实例使用相同的种子,会在所有Java实现中生成相同的数值序列。也就是说,两个种子数相同的Random对象,生成的随机数字完全相同。...

2020-12-17 18:09:33 321

elasticsearch 下载 7.x

elasticsearch 7.5.0 windows版本包,已集成ik分词器和pinyin分词器

2021-02-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除