![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
ztw9528
这个作者很懒,什么都没留下…
展开
-
解决:Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found 爆红问题
文章目录一、问题二、解决办法(1)在插件下添加版本,如下图(2)代码如下一、问题二、解决办法(1)在插件下添加版本,如下图(2)代码如下<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-bo原创 2021-08-31 21:39:41 · 472 阅读 · 0 评论 -
项目报错:Ambiguous argument values for parameter of type [int] - did you specify the correct bean...问题
一、项目报错问题的具体内容:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'student' defined in class path resource [applicationContext.xml]: Unsatisfied dependency expressed through constructor parameter 1: Ambiguou原创 2021-08-15 15:32:46 · 1265 阅读 · 0 评论 -
使用resultMap出现的问题
文章目录一、使用resultMap的相关代码1)实体类映射文件2)Mapper层(dao)实现接口3)测试类测试方法(APP)二、后台console打印报错信息三、解决该问题(还没有找到)一、使用resultMap的相关代码1)实体类映射文件<!-- 这是书写SQL语句的文件xml,也叫实体类映射文件 --><resultMap id="bookMap" type="book"> <result column="bname" property="book原创 2021-08-12 22:51:31 · 2206 阅读 · 0 评论 -
报错问题:Parameter ‘arg2‘ not found,Available parameters are [arg1, arg0, param1, param2]
文章目录一、运行项目时出现如下问题:Parameter 'arg2' not found,Available parameters are [arg1, arg0, param1, param2]二、当我们传递多个参数时,使用的是简单类型传递参数arg 或者 param;1)arg要从arg0开始使用2)param要从param1开始使用一、运行项目时出现如下问题:Parameter ‘arg2’ not found,Available parameters are [arg1, arg0, param1原创 2021-08-12 16:24:17 · 599 阅读 · 0 评论 -
报错问题:A query was run and no Result Maps were found for the Mapped Statement ‘cn.mall.dao.BookMapper‘
当运行项目时,出现的问题:A query was run and no Result Maps were found for the Mapped Statement ‘cn.mall.dao.BookMapper.selectAll’…因为在BookMapper.xml文件中,书写的SQL语句没有添加结果类型,只要在标签里写一个别名就行书写SQL语句的xml文件的标签使用方法-- 在BookMapper.xml文件中的Sql语句的标签有select、insert、delete、update,这是原创 2021-08-12 16:17:14 · 325 阅读 · 0 评论 -
报错问题:Invalid bound statement (not found):cn.mall.dao.BookMapper.selectAll
检查BookMapper.xml也就是书写SQL语句的文件,SQL语句的id名是否和dao层的要操作的增删改是否相同,可能多了个空格什么的原创 2021-08-12 16:05:52 · 304 阅读 · 0 评论