![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题排查
daizuojian
这个作者很懒,什么都没留下…
展开
-
Tomcat启动Alias name [null] does not identify a key entry报错分析,涉及从公钥(CER)+私钥(KEY)转换为jks证书的方法
先说原因是什么,之前百度,谷歌,CSDN上也搜过,搜到最多的答案是server.xml中缺少指定keyAlias=xxx,但是试了以后会发现还是报这个错,只是报错由Alias name [null] does not identify a key entry变成了Alias name [xxx] does not identify a key entry。后来从公司内网看到一个帖子才知道,原来是因为我使用keytool生成的证书有问题,里面只存在公钥,而没有私钥。我是直接使用下面命令直接将cer证书转为j原创 2022-04-07 21:50:16 · 4506 阅读 · 2 评论 -
记一次Springboot测试配置log4j2不打印日志问题
使用maven依赖spring-boot-starter-log4j2一定要在Springboot启动类所在的包。下图是我的项目结构uap-cc为最顶层父工程,uap-cc-boot和uap-cc-core为子工程,而boot依赖core,core里面要写单元测试用例,不能循环依赖boot,所以单独在test目录下写了一个TestApplication,结果就是单独启动TestApplication或者该包下的Test类,log4j2都不能在控制台正常打印日志,最后排查发现在uap-boot下再加一下sp原创 2021-12-06 10:31:17 · 3225 阅读 · 1 评论