![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
放肆的青春゛つ
做最好的自己---在校生一枚,写博客作为复习巩固,有错还请指教
展开
-
Invalid bound statement (not found): com.ycy.system.mapper.UserMapper.selectByPrimaryKey
【已解决】Invalid bound statement (not found): com.ycy.system.mapper.UserMapper.selectByPrimaryKey在pom.xml文件中加上:<!--手动指定资源文件夹--> <resources> <resource> <directory>src/main/java</directory> <includ原创 2020-11-06 20:31:42 · 310 阅读 · 0 评论 -
Error creating bean with name ‘teacherController‘: Unsatisfied dependency expressed through field ‘
Springboot集成mybatis,mybatis逆向工程时多执行了一次,导致xxx.xml文件中出现了多个相同的映射错误如下:org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'com/ycy/demo/mapper/TeacherMapper.xml'. Cause: java.lang.IllegalArgumentException: Result Map.原创 2020-11-04 22:02:29 · 2135 阅读 · 0 评论 -
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
报错如下:HTTP Status 500 - Servlet.init() for servlet mvc threw exceptiontype Exception reportmessage Servlet.init() for servlet mvc threw exceptiondescription The server encountered an internal error that prevented it from fulfilling this request.e.原创 2020-08-24 14:43:03 · 2726 阅读 · 1 评论 -
@Resource()注解报红
在刚学spring时,在使用@Resource()时,一直报错。解决方法:在pom.xml中加入一下依赖<dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3.2</version> &原创 2020-08-07 18:22:02 · 1347 阅读 · 3 评论 -
spring和mybatis集成时:Error creating bean with name ‘sqlsessionfactory‘ defined in class path resource
在把spring和mybatis集成时,一直出现下面错误警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlsessionfactory' defined in class path resource [Ap原创 2020-08-04 17:50:24 · 983 阅读 · 0 评论 -
Mybatis表不存在的几种情况
Table 'students.student' doesn't exist在数据库创建了表,在mybatis就是说表不存在Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'students.student' doesn't exist原因如下: 1、表名打错(有可能的) 2、在数据库中有两个库,两个库的表名一...原创 2020-07-24 11:41:38 · 5174 阅读 · 4 评论 -
mybatis环境搭建常见错误
刚学习mybatis的菜鸟,第一个入门案例就把能遇到的错误都报了一遍,真的服了呀,真的好菜1. 第一个Error querying database. Cause: java.sql.SQLException: No suitable driver found出错的原因:数据库的路径写错了闲下面的麻烦,我一般改为 jdbc:mysql://l/mybatis<property name="url" value="jdbc:mysql://localhost:3306/mybatis"原创 2020-07-13 23:27:02 · 444 阅读 · 2 评论