![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常exception
郁闷奶茶
这个作者很懒,什么都没留下…
展开
-
mybatis异常解决:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
今天在学习使用mybatis的时候,前几个练习都是好的,但是突然发生了Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4这个错误经过搜索,发现需要在pom加入以下插件 <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <a原创 2022-01-24 15:44:34 · 621 阅读 · 0 评论 -
MyBatis异常:Exception iin thread “main“ java.io.IOException:Could not find resource mybatis.xml
这个错误是找不到mybatis的xml主配置文件,通过两个方案即可解决方案一:没有把resource设置为resource root,右键resource目录,make as 成resource root即可解决解决方案二:如果方案一不行点击IDEA的Build,然后Build一下project即可解决!如果不行,也可以试试重启IDEA,我当时就是重启了一下IDEA即解决了这个问题...原创 2022-01-21 16:08:18 · 1955 阅读 · 0 评论 -
MyBaits异常解决:There is no getter for property named ‘ID‘ in ‘class ***‘
没有找到ID的getter方法,后面发现是因为在我们的mybatis.xml中是这样配置的用了#{}的方式,但是我们的student类里面是大写的ID因此执行sql的时候便会报错找不到getter方法,我们把这改为小写的id,或者把Insert语句里面改为大写的ID即可解决!...原创 2022-01-21 12:53:51 · 7580 阅读 · 0 评论