摘要: 函数签名如下: static <T> Comparator<T> nullsFirst(Comparator<? super T> comparator) nullsFirst(Comparator)函数接受一个比较器形参,返回一个指定null值排序规则的比较器;这个比较器是的排序规则是升序排序。 阅读全文
posted @ 2022-06-29 01:43 刘振友 阅读(633) 评论(0) 推荐(0)
摘要: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 在springboot工程中,mysql8.0驱动连接不上数据库,经查证,数据库ip地址、端口号、用户名和密码这些都没有问题,仔细查看报 阅读全文
posted @ 2021-09-20 01:45 刘振友 阅读(8895) 评论(0) 推荐(1)
摘要: ** 1.直接使用"sudo apt install tldr" 命令安装tldr软件** 在Ubuntu18.04系统下,可以直接使用apt包管理工具安装tldr,而不必依赖网上很多博客里推荐的npm命令。(主要是我通过npm命令也没装成功。。) 2.安装之后遇到的问题: 在终端运行tldr命令, 阅读全文
posted @ 2021-04-03 22:15 刘振友 阅读(1882) 评论(0) 推荐(0)
摘要: ##convertTo()函数中的一个小陷阱,以及type()函数返回值的类型映射表 convertTo只能改变Mat的数据类型,无法改变通道数 cv::Mat img_input = cv::imread(path_input, cv::IMREAD_COLOR); cout << "before 阅读全文
posted @ 2021-02-26 16:28 刘振友 阅读(148) 评论(0) 推荐(0)