![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug错误相册
文章平均质量分 50
灰太狼_cxh
不会,我可以学;落后,我可以追赶;跌倒,我可以站起来;我一定行。
展开
-
解决Caused by: net.sf.jsqlparser.parser.ParseException: Encountered “ “(“ “( ““ at line 10, column 42.
解决Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 10, column 42.运行mybatis查询sql时报错异常:Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 10, column 42.Was expecting one of: "AS" .原创 2022-03-15 22:00:00 · 7114 阅读 · 2 评论 -
解决 nested exception is java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon
springboot项目整合feign,运行项目后报错Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerCli原创 2022-01-10 17:30:13 · 2237 阅读 · 0 评论 -
idea解决import sun.misc.BASE64Decoder报错,无法找到问题
idea打开项目:运行项目时发现报错, import sun.misc.BASE64Decoder;无法找到此类打开 file->project structure 检查发现idea此时项目的java版本为11。因为java8后的版本去掉了BASE64Decoder类,所以此时把版本改为java8,然后更新maven,项目就可以运行起来了。...原创 2021-08-01 21:45:41 · 19547 阅读 · 4 评论 -
解决was not registered for synchronization because synchronization is not active
项目采用mybatis, 多数据源连接。在线上服务器调用接口时发现执行不了sql。报错:was not registered for synchronization because synchronization is not active排查发现原因是:该服务器被限制访问要连接的数据库解决方法:开放连接数据库的权限即可。我的座右铭:不会,我可以学;落后,我可以追赶;跌倒,我可以站起来;我一定行。...原创 2020-11-19 13:17:56 · 57263 阅读 · 11 评论 -
解决ssm项目启动报错:Logging initialized using ‘class org.apache.ibatis.logging.stdout.StdOutImpl‘ adapter.
ssm项目启动一直卡在Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.一般出现这种错误的几种情况:1.项目启动连接数据库失败,请先检查下能打开数据库。我就错在这里。2.对应的sql语句的id有重复。3.标签缺少,或者标签有问题4.中英文切换导致有特殊字符...原创 2020-09-01 09:37:56 · 8381 阅读 · 1 评论 -
解决新建maven项目时出现 web.xml is missing and <failOnMissin>is set to true
操作工具:eclipse,新建maven项目后pom.xml报错:web.xml is missing and <failOnMissin>is set to true,错误原因没有生成src/main/webapp/WEB_INF/web.xml相关目录路径。解决方法:1.右键点击项目名--》Java EE Tools-->Generate Deployment Des...原创 2018-07-21 11:36:40 · 2512 阅读 · 0 评论 -
Mybatis报错There is no getter for property named 'cg_id' in 'class com.st.eleventh.tools.Page'
mybatis报错:HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no ...原创 2018-07-22 17:34:08 · 496 阅读 · 0 评论 -
解决springmvc出现HTTP Status 400 -description The request sent by the client was syntactically incorrect
操作工具eclipse:服务器tomcat;运行项目ssm,在做一个插入操作时报以下错误HTTP Status 400 -type Status reportmessagedescription The request sent by the client was syntactically incorrect. 错误分析:意思是springmvc后台接收参数不能进...原创 2018-07-30 23:40:04 · 2523 阅读 · 0 评论 -
springboot启动报错:Error starting ApplicationContext. To display the auto-configuration report re-run yo
今天想做个分布式的小demo,结果跑springboot的时候出错:log4j:ERROR Could not find value for key log4j.appender.socketlog4j:ERROR Could not instantiate appender named "socket". . ____ _ __ _ _...原创 2018-08-05 11:22:11 · 100984 阅读 · 12 评论 -
springmvc出现There is no getter for property named 'ps_state' in 'class java.lang.Integer
运行ssm项目报错:HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is n...原创 2018-08-01 23:31:49 · 876 阅读 · 0 评论 -
Maven项目Run As无Run On Server的解决方法
项目想run时发现没有run on Server选项,也就是说不能把该项目放进tomcat服务进行启动解决方法:1.在pom.xml下查看有没有packaging设置,并把packaging设置为war.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/...原创 2018-09-01 08:54:16 · 2551 阅读 · 1 评论 -
在springmvc的配置文件中配置缓存报The prefix "cache" for element "cache:annotation-driven" is not bound.
在springmvc.xml的配置文件中加入缓存配置: <!-- 缓存配置(两种) --> <!-- 启用缓存注解功能(请将其配置在Spring主配置文件中) --> <cache:annotation-driven cache-manager="cacheManager"/> <!-- Spring自己的基...原创 2019-01-16 16:09:18 · 1602 阅读 · 0 评论 -
解决使用springcloud zuul出现Forwarding error错误
使用zuul进行网关过滤请求时出现Forwarding error错误:2019-04-21 12:39:29.332 INFO [service-zuul,5aadd031214b12da,5aadd031214b12da,false] 14644 --- [nio-7020-exec-3] com.cxh.study.platform.filter.MyFilter : POST ...原创 2019-04-21 13:22:26 · 13808 阅读 · 3 评论 -
解决springmvc接受前端传来的中文出现中文乱码情况
操作工具:eclipse项目:ssm(spring ,springmvc,mybatis)当出现中文乱码时:解决步骤:1.右键点击项目名,点击Properties看你项目的编码是否UTF-8,不是就改为utf-82.可以配置eclipse的全局编码为utf-8,这样你新建,导入项目都会默认设为utf-8.在eclipse中点击window-->preferences...原创 2018-07-24 22:19:08 · 21889 阅读 · 4 评论 -
解决java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"
使用springboot,权限管理使用spring security,使用内存用户验证,但无响应报错:java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"解决方法:这是因为Spring boot 2.0.3引用的security 依赖是 spring security 5.X...原创 2018-06-30 12:19:43 · 28538 阅读 · 29 评论 -
解决HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.Binding
出现HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): st.personal.dao.UserinfoMapper.insert根据提示信息说找不到mappe...原创 2018-04-22 23:19:31 · 19546 阅读 · 0 评论 -
IDEA解决URI is not registered (Settings | Languages & Frameworks | Schemas and DTD
想弄个mybatis逆向工程,添加了<!-- 添加mybatis依赖 --><dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</原创 2018-04-21 17:44:57 · 5130 阅读 · 0 评论 -
解决IDEA创建maven项目后main文件夹下目录不全的问题
IDEA创建maven-archetype-webapp项目的时候,创建完成后发现在main文件夹下没有java,resource等源文件夹。解决方法:1.选择File->Project Structure...2.选择Modules选项卡下面的Sources项,在main文件夹上右键,选择New Folder...并点击OK点击new folder,输入java文件名新生成的java文件夹...原创 2018-04-20 18:27:01 · 29333 阅读 · 9 评论 -
解决IDEA导入maven工程运行报错Error running 'index.jsp (2)': Address localhost:1099 is already in use
解决Error running 'index.jsp (2)': Address localhost:1099 is already in use的方法是:1、打开cmd 输入netstat -ano找到对应的1099端口之后打tasklist查看哪个程序占用该端口,找到就去任务管理器找到相应的进程把它关掉再去IDEA运行tomcat就好了。2.快捷方法:出现Address localhost:1...原创 2018-04-20 17:38:41 · 13386 阅读 · 2 评论 -
解决Java compiler level does not match the version of the installed Java project facet.
Java compiler level does not match the version of the installed Java project facet.的解决:1.在资源管理器下,找到项目所在的目录在E:\dormitory\dorm\.settings子目录中,用文本编辑器打开org.eclipse.wst.common.project.facet.core.xml配置文件:修改红...原创 2018-03-20 17:15:16 · 2117 阅读 · 1 评论 -
解决Cannot change version of project facet Dynamic Web Module to 3.0.
虽然报错Cannot change version of project facet Dynamic Web Module to 3.0.,One or more constraints have not been satisfied.(没有满足一个或多个约束条件。)但项目也可以运行虽然项目可以跑起来,但控制台会抛出异常所以为了避免后续项目的bug,也要解决这个bug.One or more co...原创 2018-03-20 17:03:04 · 216 阅读 · 0 评论 -
lDEA:解决Error: A JNI error has occurred, please check your installation and try again
今天java程序run出现Error: A JNI error has occurred, please check your installation and try againException in thread "main" 。解决方法:修改jre估计是新建java项目时选错了jre,可以选择自己本地安装的jre,当然如果你IDEA默认配置的jre没错的情况下,是不会出现这种错误。...原创 2018-04-26 18:53:10 · 42393 阅读 · 1 评论 -
解决springboot读取配置文件的中文乱码问题
在application.properties中填写中文信息,在读取该文件时会出现中文乱码问题。比如:application.properties内容:student.name=小康student.age=15解决方法:我用的是IDEA,首先File->settings->Code style->File Encoding把所有的编码都设为UTF-8就好了。再次运行,得出正常结...原创 2018-05-04 13:42:07 · 7234 阅读 · 0 评论 -
解决Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgument
运行项目出现:Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for st.personal.dao.CollectMapper.BaseR...原创 2018-05-05 11:35:46 · 11821 阅读 · 0 评论 -
解决java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use
springboot测试时出现:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test是因为我没在根目录下写一个springboot的...原创 2018-05-05 15:50:51 · 50017 阅读 · 11 评论 -
解决:Caused by: javax.mail.AuthenticationFailedException: 530 Error: A secure connection is requiered
springboot发送qq邮件出现:Caused by: javax.mail.AuthenticationFailedException: 530 Error: A secure connection is requiered(such as ssl). More information at http://service.mail.qq.com/cgi-bin/help?id=281.QQ邮...原创 2018-05-05 16:52:42 · 1925 阅读 · 0 评论 -
if (fs!=null&&fs.getId()>0)和if (fs!=null)的区别
今天出现一个错误,花了我3个小时,最后发现错在了这:if (fs!=null&&fs.getId()>0)和if (fs!=null)的区别:这样会出错:不会执行if-else的代码/** * 关注用户 * @param follow * @return */@RequestMapping(value = "/followUser",produces="text/h...原创 2018-05-12 23:49:35 · 823 阅读 · 2 评论 -
解决Server Tomcat v8.5 Server at localhost failed to start
1.首先看console台报错的信息严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard...原创 2018-03-18 17:16:51 · 114880 阅读 · 9 评论