自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 问答 (1)
  • 收藏
  • 关注

原创 redis 执行lua脚本 不同方式的传参

redis执行lua脚本的两种方式:使用redis交互命令执行,直接执行lua脚本。两种方式的传参其实是不一样的

2023-05-11 17:28:20 985

原创 timescaleDB 创建超表报错cannot create a unique index without the column “xxx“

初次使用时序表,还没用起来,记录遇到的问题1、cannot create a unique index without the column ‘xxx’创建好普通表后,将其转换为超表命令:SELECT create_hypertable('message.device_warning_info', 'fault_time');报错信息如下:cannot create a unique index without the column "fault_time" (used in parti

2022-03-02 13:56:01 1097 1

原创 @Feignclient 无法通过ApplicationContext 获取bean

一、现象使用@FeignClient进行服务间调用,某个特殊场景需要通过上下文获取bean,报错如下java.util.concurrent.ExecutionException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dataCenterService' available二、解决方案这个问题的原因没有深究,可能是原因可参考:SpringCloud之Feign.

2022-02-24 16:36:00 2569 1

原创 @MessagingGateway 无法注入--初次使用Spring integration集成mqtt填坑记录

一、背景首次使用Spring integration集成mqtt,按照网上的各种指导文档,写完后无法启动,一直报错:Parameter 0 of constructor in com.xxxx.xxxx required a bean of type 'com.xxxx.xxxx' that could not be found.Action:Consider defining a bean of type 'com.xxxx.xxxx' in your configuration.无法

2022-02-15 11:03:00 4095 7

原创 InvalidPathException: Malformed input or input contains unmappable characters 中文名文件 linux存储失败

InvalidPathException: Malformed input or input contains unmappable characters 中文名文件 linux存储失败

2021-12-16 18:07:17 19976 2

原创 stream流(含并行流parallelStream)与for循环处理集合性能(时间)对比

最近处理报表数据,经常需要使用stream,一直听说stream性能不佳,突然想知道差别在哪儿,写了几个实例测试了一下。@Datapublic class StudentInfo { @ApiModelProperty(value = "班级id") private int classId; @ApiModelProperty(value = "姓名") private String name; @ApiModelProperty(value = "课程成

2021-12-09 08:39:56 3773

原创 mybatis plus 查询指定字段 报错 IndexOutOfBoundsException :Index 1 out of bounds for length 1

1、mybatis-plus版本:3.4.32、现象:使用select查询指定字段时,报错如图:java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 13、问题原因:使用mybatis-plus查询单字段时,对应的实体类没有加该字段的构造器,所以报图上错误。4、解决方案:实体类上添加对应的构造器5、神奇的现象:当单查一个字段时,报错让人很迷糊。但是当你查多个字段时,报错现象和..

2021-09-18 15:40:12 11918 1

原创 idea 安装插件后无法启动 PicoRegistrationException: luacheck.LuaCheckSettings duplicate

1、现象: 安装lua插件后,由于idea是2021.1的版本,版本过高,与EmmyLua插件不兼容,导致idea无法启动2、解决办法:删除以下两个目录对应的文件(可能idea的安装目录下的plugins目录下也有需要删除的)(或者直接安装个everything,全局搜索这些文件,并将其删除)...

2021-09-17 09:51:03 1375

原创 mybatis plus size=0时,重写PaginationInnerInterceptor,查询全部数据且total有值

1、遇到问题: 分页查询接口,在特殊场景下,要求不分页,返回全部数据。mp默认当size=-1时,会返回全部数据,但是total为0;当size=0时,total有值,但是没数据。没法在返回全部数据的同时,total也有值。2、解决方法:自定义分页拦截器,重写拦截器中的handlerLimit方法,巧妙规避当size=0,total有值list无值问题// 自定义分页拦截器public class CustomPaginationInnerIntercept...

2021-08-19 17:10:54 1341 2

空空如也

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

TA关注的人

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