- 博客(4)
- 收藏
- 关注
原创 Cause: java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4).
错误描述: 启动项目调接口的时候控制台报错 Cause: java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4).错误分析: 可以看到控制台日志输出了下面这一句话 ### The error occurred while setting par...
2018-05-16 15:45:39 27254 11
原创 mybatis if test条件判断语句中 的判断问题
写这个主要是描述在mybatis中要注意的问题,很不幸,自己没注意,跳坑了。我在mybatis中定义的sql语句如下:<if test="facilityOccupied != null and facilityOccupied != '' and facilityOccupied == 1 "> and z.serviceCount = 1 </if&g...
2018-05-15 17:09:26 34034 3
原创 使用注解失败的原因及解决方法
启动项目报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userSer'; nested exception is o...
2018-05-09 12:16:07 2278
原创 解决 .java 文件未编译问题
项目编译时没报错,启动tomcat报错如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init...
2018-05-09 12:00:47 2823
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人