2021年1月8日

hutool读取Excel内容

摘要: 需要引入依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.4.7</version> </dependency> <dependency> <groupId>org. 阅读全文

posted @ 2021-01-08 01:01 放弃容易坚持一定很帅 阅读(3740) 评论(0) 推荐(0) 编辑

2020年12月23日

记录:使用ES的聚合和Filter遇到的问题(已解决)

摘要: NativeSearchQueryBuilder queryBuilder = new NativeSearchQueryBuilder() .withIndices("vehicle_illegal_information") .**withFilter**(QueryBuilders.boolQ 阅读全文

posted @ 2020-12-23 16:48 放弃容易坚持一定很帅 阅读(856) 评论(0) 推荐(0) 编辑

2020年12月19日

启动springboot的项目的时候报错 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

摘要: 启动springboot项目报错 提示:`**Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-12-19 12 阅读全文

posted @ 2020-12-19 13:40 放弃容易坚持一定很帅 阅读(631) 评论(0) 推荐(0) 编辑

2020年12月17日

idea激活码 2020年12月17日 可以用到 2021年2月10号

摘要: 2NB1C4OWXS-eyJsaWNlbnNlSWQiOiIyTkIxQzRPV1hTIiwibGljZW5zZWVOYW1lIjoi5r+A5rS75Zyw5Z2AIGlkZWHCt21lZGVtaW5nwrdjb20iLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUV 阅读全文

posted @ 2020-12-17 09:04 放弃容易坚持一定很帅 阅读(133) 评论(1) 推荐(0) 编辑

2020年12月14日

logback-spring.xml相关配置的注释

摘要: <!-- 彩色日志格式 --> <property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:- 阅读全文

posted @ 2020-12-14 13:55 放弃容易坚持一定很帅 阅读(369) 评论(0) 推荐(0) 编辑

2020年12月11日

Exception in thread "main" java.lang.UnsupportedOperationException 数组转化为list后,返回的List是具有固定长度的私有静态内部类

摘要: 测试代码: String[] array = {"1","2","3"}; List<String> list = Arrays.asList(array); // list.add("4"); list.remove(0); 这个时候会报错 Exception in thread "main" j 阅读全文

posted @ 2020-12-11 14:45 放弃容易坚持一定很帅 阅读(96) 评论(0) 推荐(0) 编辑

2020年12月10日

一.设计模式之六大原则

摘要: 1.单一职责原则 : 一个类只负责一个职责 2.里氏替换原则 :子类可以扩展父类的功能,但是不要改变父类的功能 3.依赖倒置原则 :面向接口编程 4.接口隔离原则 : 实现最小功能接口,粒度越小越好 5.迪米特法则 : 降低偶合, 在局部变量里面尽量不要引用其他的类 6.开闭原则 :对扩展开发,对修 阅读全文

posted @ 2020-12-10 23:15 放弃容易坚持一定很帅 阅读(83) 评论(0) 推荐(0) 编辑

2020年12月8日

redis经典面试题

摘要: Redis常问的40道面试题(答案) 1、什么是 Redis? Redis 是完全开源免费的,遵守 BSD 协议,是一个高性能的 key-value 数据库。 Redis 与其他 key - value 缓存产品有以下三个特点: (1)Redis 支持数据的持久化,可以将内存中的数据保存在磁盘中,重 阅读全文

posted @ 2020-12-08 19:46 放弃容易坚持一定很帅 阅读(103) 评论(0) 推荐(0) 编辑

2020年12月7日

windows远程连接linux服务器的redis 连接不上

摘要: 问题解决:没有关闭linux的防火墙,导致外部链接进不来 关闭防火墙命令:systemctl stop firewalld 阅读全文

posted @ 2020-12-07 22:27 放弃容易坚持一定很帅 阅读(656) 评论(0) 推荐(0) 编辑

2020年12月4日

linux下安装mysql 8.* MySQL连接时找不到mysql.sock文件

摘要: 连接数据库时报错:Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) "; 分析:找不到mysql.sock文件,自然连接不了 原因:1)mysql服务没启动;2)sock文件路径设置错误 ;3)sock 阅读全文

posted @ 2020-12-04 15:14 放弃容易坚持一定很帅 阅读(1193) 评论(0) 推荐(0) 编辑

导航