![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
坑
小龙舟~
这个作者很懒,什么都没留下…
展开
-
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty原创 2021-03-16 15:35:02 · 8583 阅读 · 1 评论 -
【坑】Redis使用StringRedisTemplate保存数据,值为 \x00 \u0000 乱码问题
1.问题Redis中的value,看起来有一堆乱码的 \x00\x00\x00\x00\x00,官网介绍的是 \u00002.解决方案错误使用的StringRedisTemplate set方法public void set(String key, String value, long timeout) { stringRedisTemplate.opsForValue().set(key, value, timeout);}改为使用如下StringRedisTemplate set方法p原创 2020-08-24 15:49:59 · 4587 阅读 · 7 评论 -
【坑】【maven】在PowerShell窗口下执行maven命令行报错:Unknown lifecycle phase ".test.skip=true".
在PowerShell窗口下执行maven命令行报错:Unknown lifecycle phase “.test.skip=true”.不说废话,先展示错误信息[ERROR] Unknown lifecycle phase “.test.skip=true”. You must specify a valid lifecycle phase or a goal in the form原创 2018-01-04 17:42:01 · 21865 阅读 · 10 评论 -
【坑】【SpringBoot】指定服务项目名
使用不同SpringBoot版本,指定访问项目路径的项目名,使用的配置也不一样 有网友指出 SpringBoot版本 配置 1.x server.context-path=/demo 2.x server.servlet.context-path=/demo以下为本地测试可行代码pom.xml中使用SpringBoot版本&...原创 2018-06-07 17:37:08 · 25915 阅读 · 1 评论 -
【坑】emoji表情保存至mysql中报错
背景保存一个Emoji表情至数据中时出现如标题的报错原因当前Mysql数据库字符集设定为:utf8,只能保存3字节的字符emoji表情为4字节字符,保存时报错(一些特殊字符和表达式保存报错一般也是由于这个原因)解决方案修改数据库字符集为 utf8mb4吐槽字符集分为数据库级别,表级别,字段级别三个级别;由于这个服务是一个很老的核心服务,针对方案是最小最稳妥的改动来修...原创 2019-07-11 15:31:56 · 2799 阅读 · 0 评论