BUG集
该专栏中记录了博主在开发过程中所遇见的诸多bug
超级码里喵
这个作者很懒,什么都没留下…
展开
-
Jvisualvm设置中文
从官网上下载的Jvisualvm.exe,一般启动后都为英文版。如果本地电脑中有安装JDK,只要你使用的是JDK1.6 Update7之后的版本,那么它久已经在你的JDK bin目录里了。(该版本为中文版)直接启动JDK中bin目录下的jvisualvm.exe即可。...原创 2022-05-11 00:53:14 · 10707 阅读 · 22 评论 -
visualvm启动报错:You are running VisualVM using Java Runtime Environment(JRE). Please use Java Developme
问题描述:visualvm.exe启动报错:You are running VisualVM using Java Runtime Environment(JRE).Please use Java Development Kit(JDK) to run VisualVM. For information about requirements and setup visit https://visualvm.github.io.问题原因:没有正确配置JDK的目录解决方式:在\VisualV原创 2022-05-11 00:09:56 · 1659 阅读 · 0 评论 -
SpringBoot整合Redis注解访问报错:EL1008E: Property or field ‘getListMember‘ cannot be found on object of type
问题描述:Springboot整合redis注解,请求访问时报错:org.springframework.expression.spel.SpelEvaluationException: EL1008E:Property or field ‘getListMember’ cannot be found on object of type‘org.springframework.cache.interceptor.CacheExpressionRootObject’ -maybe not publ原创 2022-04-28 15:14:52 · 3096 阅读 · 0 评论 -
SpringBoot整合Redis注解访问报错:java.io.NotSerializableException: com.demo.entity.MemberEntity
问题描述:SpringBoot整合Redis注解,请求时报错java.io.NotSerializableException: com.demo.entity.MemberEntity atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)~[na:1.8.0_191] atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348原创 2022-04-28 15:14:32 · 882 阅读 · 1 评论 -
SpringBoot项目启动报错:Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
问题描述:SpringBoot项目启动报错,报错内容:‘com.xxx.mapper.XxxxMapper’ that could not be found*************************** APPLICATION FAILED TO STARTDescription:Field userMapper in com.demo.controller.MemberController required abean of type ‘com.demo.mapper.UserMap原创 2022-04-28 12:13:24 · 10654 阅读 · 2 评论 -
执行make命令报错:gcc:命令未找到/bin/sh: cc: 未找到命令
问题描述:执行make命令报错:gcc:命令未找到/bin/sh: cc: 未找到命令问题原因:原因是虚拟机系统中缺少gcc解决方式:执行下面命令安装gccyum -y install gcc automake autoconf libtool make注:如果出现“zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录”这个报错,请参考:https://blog.csdn.net/qq_30999361/article/details/1原创 2022-04-27 12:24:00 · 8128 阅读 · 0 评论 -
redis安装报错:zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录
问题描述:zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录解决方式:执行命令:make MALLOC=libc原创 2022-04-27 12:21:29 · 3377 阅读 · 2 评论 -
SpringCloud整合Nacos启动报错:com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationT
报错内容:2022-04-25 10:09:01.575 ERROR 14136 — [ main]o.s.c.a.nacos.NacosConfigProperties : create config serviceerror!properties=NacosConfigProperties{serverAddr=‘null’,encode=‘null’, group=‘DEFAULT_GROUP’, prefix=‘null’,fileExtension=‘pr原创 2022-04-25 11:01:51 · 6496 阅读 · 0 评论 -
SpringCloud整合Nacos启动报错:Injection of autowired dependencies failed; nested exception is java.lang.Ill
报错内容:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘memberServiceImpl’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘demo.userNa原创 2022-04-25 11:00:36 · 3566 阅读 · 0 评论 -
required a bean of type ‘com.xxx.xxx.mapper.XxxMapper‘ that could not be found.
报错内容:Description:Field userMapper in com.demo.api.impl.member.MemberServiceImpl required a bean of type 'com.demo.api.impl.mapper.UserMapper’ that could not be found.The injection point has the following annotations:- @org.springframework.beans.factory原创 2022-04-25 08:00:00 · 1695 阅读 · 1 评论 -
SpringCloud中,子项目不能引用父级项目中pom的jar包问题
问题描述:在项目:jc-sp-service-impl中包含两个子项目:jc-sp-service-member、jc-sp-service-weixin,父项目中在pom文件中成功引入jar包(mysql、mybatis-plus),但是在子项目中找不到该jar包问题原因:在建子module时,没有正确指明父子关系,导致生成的子module中,pom文件里父子关系配置错误,所以子module中无法正确引入jar包修改方式:修改<artifactId></artifactId>原创 2022-04-25 07:30:00 · 2817 阅读 · 1 评论 -
使用restTemplate启动报错:Field restTemplate in com.demo.service.OrderToMemberService required a bean of ty
报错内容:Field restTemplate in com.demo.service.OrderToMemberService required a bean of type ‘org.springframework.web.client.RestTemplate’ that could not be found.问题原因:spring没有将restTemplate注入到容器解决方式:在启动类中将restTemplate注入到spring ioc容器中重新启动一下,启动成功...原创 2022-04-22 11:03:05 · 7003 阅读 · 0 评论 -
Nacos2.0启动报错:Your project setup is incompatible with our requirements due to following reasons:
问题描述:SpringCloud搭建Nacos2.0 Client端,启动时报错:Your project setup is incompatible with our requirements due to following reasons:– Spring Boot [2.1.8.RELEASE] is not compatible with this Spring Cloud release train问题原因:springboot版本与Nacos版本不兼容解决办法:更换springb原创 2022-04-22 10:16:34 · 1817 阅读 · 0 评论 -
搭建Eureka注册中心:Maven红线、启动报错、jar包兼容性问题
建议使用:https://maven.aliyun.com/repository/spring 这个maven仓库,配合下面的maven配置,可以解决绝大多数由于jar包造成的报错问题!!!Maven:<dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>sprin原创 2022-04-21 21:16:01 · 2068 阅读 · 0 评论 -
报错:invalid LOC header (bad signature)
异常信息:错误: 读取D:\maven-repository\org\springframework\boot\spring-boot\ 1.4.2.RELEASE\spring-boot-1.4.2.RELEASE.jar时出错; invalid LOC header (bad signature)问题原因:该包没有被完整正确的下载解决方法:进入到报错的路径下,将该路径下的文件全部删除,让maven重新下载...原创 2022-04-21 14:42:52 · 550 阅读 · 2 评论 -
在AJAX中发请求下载文件,当文件不存在时出现的问题
问题描述:用AJAX的post请求实现一个下载功能,当所要下载的文件不存在时,前台返回页面无响应,部分代码如下:前台:Controller:(Controller中130行处file路径下的文件不存在,所以程序会跳到149行的catch方法中,并给前台返回一个下载失败的信息)前台界面在浏览器中的显示:我们可以看到前台界面没有接收到后台传来的信息。问题产生原因:去网上查阅了一些...原创 2018-12-05 10:05:18 · 2470 阅读 · 1 评论 -
编译时报错:org.springframework.beans.factory.BeanCreationException
问题描述:项目在启动时出现编译错误:[WARN ] [17:13:51] org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springfr...原创 2018-12-03 17:24:30 · 1035 阅读 · 0 评论 -
eclipse中clean项目报错、SVN提交代码报错:Previous operation has not finished; run 'cleanup' if it was interrupted
问题描述:当在eclipse中清除(clean)项目缓存或向SVN中提交代码时报错(Previous operation has not finished; run ‘cleanup’ if it was interrupted),具体报错内容如下图所示:产生问题的原因:一般是因为修改了相关的文件名或工程名,但是却没有提交而进行其他svn代码操作引起的。解决办法:选中项目右键,Team...原创 2018-12-03 13:54:20 · 1584 阅读 · 1 评论 -
报错:The valid characters are defined in RFC 7230 and RFC 3986
报错内容:信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.java.lang.IllegalArgumentException: Invalid character found in the r...原创 2018-11-26 17:49:33 · 562 阅读 · 0 评论 -
org.hibernate.NonUniqueObjectException
昨天在开发过程中遇见个这样的报错:org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:问题详细描述:现有个数据表A和数据表B,想从数据表A中将数据通过代码复制到表B中,数据表A和数据表B结...原创 2018-11-15 10:01:19 · 895 阅读 · 0 评论 -
Eclipse解决Tomcat端口占用的问题
方法一:调出任务管理器,结束javaw进程。(这里推荐使用方法一,简单暴力)方法二:在开始菜单中选择运行(win+R),然后输入"cmd"进入DOS界面。在Dos窗口中输入netstat -ano|findstr 8080(注意的 我的Tomcat 的断口号 是8080 你的断口号是多少就写多少)。然后输入taskkill /pid 4136 /f 然后问题就解决了...原创 2018-11-08 17:11:04 · 1416 阅读 · 0 评论 -
Maven Dependenc下引入的jar包显示成文件夹(without test code)
今天朋友在搭建一个maven项目时遇到这样一个情况:工程B引入jar包后在项目中看到的引入文件是工程A的文件夹,而不是我们想要的jar包。解决方法:eclipse下同时打开工程A和工程B, 工程A通过mvn deploy命令发布到maven仓库, 工程B通过pom.xml文件依赖工程A, 这时在工程B的Maven Dependencies显示工程A的jar为一个文件夹, 把工程A关闭了...原创 2018-11-08 16:46:44 · 8080 阅读 · 6 评论 -
报错:java.lang.IllegalThreadStateException
同一个Thread启动第二次会报错java.lang.IllegalThreadStateException解决办法:只要每次都new 一个新的线程对象,就不会报错。原创 2018-11-13 15:05:02 · 1275 阅读 · 1 评论