spingboot
撒有啦啦Q
Never be that HAPPY FLY.
展开
-
springboot启动报错:An attempt was made to call the method javax.servlet.ServletContext.getVirtualServ...
报错信息如下:***************************APPLICATION FAILED TO START***************************Description:An attempt was made to call the method javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; but it does not exist. Its class, ja.原创 2020-08-06 22:51:44 · 6877 阅读 · 0 评论 -
springboo启动项目报错Caused by: java.lang.NoClassDefFoundError: Lredis/clients/jedis/JedisPoolAbstract;
报错信息如下:首先是多个类的bean无法创建,查看注解都加上了,包的扫描地址也是正确的,又猜测是循环依赖的问题,但是检查代码后发现并没有发生循环依赖。再看后面的报错信息,错误信息可能和redis有关,于是检查redis发现,项目主干和分支上面引入的redis版本不一致。在对应的pom依赖中将版本修正即可。总结:遇到类似问题时,不要只纠结于一处的报错修改,确定无误时,看一下别处不一样的报错信息,可能就会发现问题所在。...原创 2020-08-06 22:38:24 · 2356 阅读 · 0 评论