#Xception

java.sql.SQLException: Data truncated for column 'seat_number' at row 1

项目中trycatch出现这种情况,就去检查下数据库列类型和项目中实体类的id类型是否一致。数据库id是int类型的,项目实体类是String类型的,项目save功能无法保存,导致了我的这个异常。...

完美解决: org.apache.ibatis.binding.BindingException Invalid bound statement (not found)

异常描述:org.apache.ibatis.binding.BindingException:Invalidboundstatement(notfound)原因:springboot整合mybatis,在编译时,如果不添加此节点mybatis的mapper.xml文件都会被漏掉,即只会生成mapper对应的class...

rg.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:

原先跑TESTCASE的时候没有出错但是跑到整个程序里面,除了这个问题,网上也找了下资料,说是用merge之类的可以解决,因为你这个update的obj和session里面的不用,所以导致此问题。突然石化~~~想到session~~~想到TESTcase的时候没有用事物aop所以每个方法都是一个事物,所以当然没问题,而...

项目启动报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wuhongyu.mapper.OrdersMapper.selectByExample

在用maven配置mybatis环境时出现此BindingExceptiony异常,发现在classes文件下没有mapper配置文件,应该是maven项目没有扫描到mapper包下的xml文件, 在pom.xml中加入一下代码可以解决:<build><resources><!-...

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19

启动项目报错:org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19原因是tomcat的版本太低了,改成9就可...

java.lang.ClassNotFoundException: org.apache.jsp.error_jsp

缺少jar包第一个:standard-1.1.2.jar第二个:jstl-1.2.jar...

java查询数据库数据时报错antlr/ANTLRException

在集成SH项目时,写hql语句总是查不出东西,而且报java.lang.NoClassDefFoundError:antlr/ANTLRException,郁闷了很久在网上终于找到了答案,原来是却一个叫antlr-2.7.6.jar,将它导入项目就没事了。...

Communications link failure due to underlying exception: ** BEGIN NESTED EXC

一是将wait_timeout=31536000  interactive_timeout=31536000   将过期时间修改为1年。  二是在连接URL上添加参数:&autoReconnect=true&failOverReadO...

再见:org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer

这个问题我之前遇见多次了,今天又遇见了2019-03-2216:33:27.555WebMvcConfigurer.java:144ERROR-接口[/appservice/7za.exe]出现异常,请求参数:platform=Windows,异常摘要:java.io.IOException:Connectionres...

spring boot tomcat 打本地包成war,通过Tomcat启动时出现问题: ZipException: error in opening zip file

  一个第三方公司提供springboot项目,直接启动是ok的,但是打包成war,通过Tomcat启动,就出现ZipException:errorinopeningzipfile:20-Mar-201915:48:28.385信息[localhost-startStop-1]org.apache....

Springboot admin 发送邮件失败:com.sun.mail.smtp.SMTPSenderFailedException: 553 Mail from must equal authorized user

发邮件已经是老生常谈了,今天又遇到了,而且又出了各种问题。我晕哦。我的配置是:spring.mail.host=smtp.163.comspring.mail.username=klxxxxspring.mail.password=qwer1234spring.boot.admin.notify.mail.to=lkx...

java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseSelectProvider.<init>()

这个问题好奇怪,出现这个错误是通用Mapper初始化的错误,排查的方向就是往这个方向,可能的情况有以下几种:1.jar包冲突<dependency><groupId>tk.mybatis</groupId><artifactId>mapper</artifactId...

org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.HashMap

这样的配置有问题吗?<selectid="getFreightCollectManagementList"resultMap="java.util.HashMap"parameterType="com.rms.providers.dto.AccountingPayableDto"> 有的,出现my...

低级sql语法错误: BadSqlGrammarException

atorg.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760)atorg.springframework.boot.SpringApplication.afterRefresh(SpringApplication....

spring boot 之 错误:SpelEvaluationException: EL1008E: Property or field 'timestamp' cannot be found on object of type 'java.util.HashMap'

这个错误我也见过很多次了,今天终于理解了其出现的原因。错误是这样的:2017-11-2318:05:39.504ERROR4092---[nio-8080-exec-3]o.a.c.c.C.[Tomcat].[localhost]:ExceptionProcessingErrorPage[errorCode=0,loc...
首页上一页...3031323334...下一页尾页