![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug
软件老鸟徐老师
科技改变生活,改变自己。
展开
-
springboot exception:java.lang.ClassNotFoundException: org.springframework.transaction.Reacti
java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@4e0e2f2a] at org.springframework.util.ReflectionUtils.getD...原创 2021-08-24 17:21:28 · 1956 阅读 · 0 评论 -
springboot操作redis客户端jedis时报错:java.lang.ClassNotFoundException: redis.clients.jedis.util.Pool
当前项目使用的springboot版本是2.3.4..RELEASE 使用的jedis版本是2.9.0 经过查找发现springboot和jedis版本需要对应才行。springboot版本为 2.1.3.RELEASE 可以用 jedis版本2.9.0springboot版本为2.2.0.RELEASE 可以用jedis版本3.1.0springboot版本为2.3.3.RELEASE 可以用jedis版本3.1.0参考文章:https://blog.csdn.net/qq_4262197转载 2021-04-29 16:27:12 · 1511 阅读 · 0 评论 -
springboot 操作mongodb时报错:command failed with error 18 (AuthenticationFailed)
今天尝试使用springboot结合mongodb来学习测试一下mongodb相关的操作,自己兴致满满的引入相关的依赖后,启动程序进行调试,才发现现实很骨感,最简单的查询报错了。报错信息是验证失败,奇了怪了,mongodb的地址、用户、密码没有写错。自己通过mongodb的工具连接也没有问题。哪为啥还会报验证失败的问题。同时在google上进行查找,绝大多数人说是没有权限,哪不对呀,我用的是最高权限的角色,不可能存在权限不够的问题。后续找到一篇文章的引起了我的注意,其中该文章说道,mongodb的密码不能是原创 2021-04-29 16:14:59 · 1092 阅读 · 0 评论 -
SpringBoot项目启动报错:his can also happen if you are @ComponentScanning a springframework package
首先程序中springboot项目并没有启动@componentscan注解,但是启动项目的时候,却报了@componentscan注解的问题,对当前项目结构进行分析,发现自己犯了一个常规的错误,当前项目的启动类上没有引入任何的包空间,也就是说,当前启动类不属于任何包。知道@componentscan的人知道,该注解是扫描指定包下的所有组件,将组件装配到spring ioc容器中。按照springboot的约定,不存在该注解的情况下,springboot程序将扫描当前启动类所在包空间下的组件。因为当前不存在原创 2021-04-29 15:55:01 · 782 阅读 · 0 评论 -
Spring POI操作报错:org.apache.poi.util.LittleEndian.getUnsignedByte
<dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>3.17</version></dependency><dependency><groupId>org.apache.poi</groupId><artifactId...原创 2021-04-29 15:39:02 · 1082 阅读 · 0 评论 -
linux下java的new File()中文路径不能找到文件问题
之前在windows上进行测试的时候,测试中文路径的时候不会存在问题,后续将程序部署到linux后,再采用中文的方式进行文件读取测试,发现 file.exists() 会返回false,实际上路径是没有错误的,一直在查找原因,想一想可能是文件编码的问题,window和linux上文件的编码是不一致的,所以顺着这个方向查找,发现也有同学遇到了同样的问题,通过设置linux的编码格式来进行解决。vi /etc/profile,在文件末尾加上export LANG="zh_CN.GBK"expor翻译 2021-04-29 15:32:19 · 3265 阅读 · 0 评论 -
Reflections 0.9.12 Caused by: java.lang.IllegalStateException: zip file closed
在spring项目中使用发射框架 reflections 0.9.12 时,在windows上进行测试时候,不存在问题,但是发布部署到linux上进行运行测试,查看日志发现以下问题:Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [x.x.x.SerializedTypeNameResolver]: Factory method 'serializedTypeNameResol转载 2021-04-29 11:18:37 · 1974 阅读 · 0 评论 -
dockerfile-maven-plugin bug:connection reset by peer
在spring项目中使用dockerfile-maven-plugin对项目进行打包,idea异常报错:“connection reset by peer”,出现该错误的原因主要有下面两个原因:1.repo仓库名称写错了。2.镜像名称存在大写,最好小写。...转载 2021-04-29 11:09:01 · 563 阅读 · 0 评论