问题解决
LiLittleCat
这个作者很懒,什么都没留下…
展开
-
使用了WireMock的HTTPS端口的Junit测试在Jenkins中报错BindException: Address already in use的解决办法
问题描述在Junit测试中使用了WireMock测试https端口,在本地所有测试均无异常,但放在Jenkins服务器中运行时报错,测试部分代码如下,使用随机端口:import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options;private WireMockServer wm = new W...原创 2020-04-23 09:00:28 · 788 阅读 · 3 评论 -
解决Intellij IDEA下载maven依赖速度过慢的问题
找到setting中的maven设置,打开当前使用的maven的setting.xml文件,也可以新建并配置一个setting.xml。在setting.xml中的mirror部分写入以下代码:<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1....原创 2020-02-19 14:25:24 · 5131 阅读 · 1 评论 -
解决Windows安装PostgreSQL时出现An error occured executing the Microsoft VC++ runtime installer的问题
问题描述Windows安装PostgreSQL时,报错:There has been an error.An error occured executing the Microsoft VC++ runtime installer。安装环境系统版本:Windows 10 专业版 64位软件版本:PostgreSQL 9.6.17解决方法进入cmd,切换到安装包目录,输入安装包名和-...原创 2020-02-19 15:00:26 · 2816 阅读 · 1 评论 -
解决 Spring Boot + shiro + junit 进行单元测试时报错 No SecurityManager accessible to the calling code 的问题
解决Spring Boot + shiro + junit 进行单元测试时报错No SecurityManager accessible to the calling code的问题问题描述原因分析解决办法解决前解决后结语问题描述项目使用Spring Boot整合shiro,利用MockMVC进行单元测试时,报如下错误:Cause: org.apache.shiro.UnavailableS...原创 2019-12-06 14:25:58 · 3852 阅读 · 3 评论