![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
避坑
-胡进-
一个热爱软件技术的大学生
展开
-
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hujin.springboo
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hujin.springboottest18logback.dao.StudentMapper.selectStudentCount at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:232) ~[mybatis-3...原创 2021-11-08 11:14:03 · 101 阅读 · 0 评论 -
org.springframework.beans.factory.UnsatisfiedDependencyException:解决方案
在springboot核心配置文件中加入:#指定Mybatis映射文件的路径mybatis.mapper-locations=classpath:*/*.xml原创 2021-11-07 20:51:43 · 128 阅读 · 0 评论 -
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is
在dubbo的项目中的实体类 中,实现接口:原创 2021-11-02 16:23:24 · 123 阅读 · 0 评论 -
如果出现VM虚拟机win10系统出现虚拟机繁忙/无法正常启动、关闭虚拟机,可以尝试安装15版本的VM
如果出现VM虚拟机win10系统出现虚拟机繁忙/无法正常启动、关闭虚拟机,可以尝试安装15版本的VM直接去百度搜索下载原创 2021-11-02 09:26:49 · 290 阅读 · 0 评论 -
javax.servlet.ServletException: Circular view path [student]: would dispatch back to the current han
这是说这个Servlet输出的是数据,应该要:方法1:在类名上加上注解@RestController,这个注解的意思是相当于在控制层上加了@Controller和@ResponseBody,意味着当前控制层中所有方法返回的都是JSON对象方法2:...原创 2021-10-30 14:28:17 · 342 阅读 · 0 评论 -
连接数据库时区问题
在url后:jdbc:mysql://localhost:3306/springboot?useUnicode=true&characterEncoding=utf8&useSSl=true如果是数据库是8版本以上的,则:路径可能变为:com.mysql.cj.jdbc.Driverurl是:jdbc:mysql://localhost:3306/springboot?useUnicode=true&characterEncoding=UTF原创 2021-10-30 11:53:52 · 133 阅读 · 0 评论 -
org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘com/hujin
注意:springboot项目中的包名必须放到运行类的同级目录或者下级目录运行类就是:问题解决:把运行类用一个包装起来,与项目的其他包是同级包谢谢,希望对你有帮助...原创 2021-10-29 16:07:43 · 920 阅读 · 0 评论 -
Description:Web server failed to start. Port 8080 was already in use.Action:Identify and stop
运行springboot时出现了这个错误,看出8080端口号被占用,所以我就这样:在配置文件中修改端口号看运行结果:就好了原创 2021-10-29 15:47:13 · 885 阅读 · 0 评论 -
Maven中JDBC驱动问题
Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project Spring-test02: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate failed: Exception getting J原创 2021-10-29 14:11:11 · 241 阅读 · 0 评论 -
Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-
Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project Spring-test02: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate failed: Cannot resolve clas原创 2021-10-29 14:05:16 · 4534 阅读 · 0 评论 -
Ajax发送请求后出现乱码或者为空null,或者什么都没有
使用HttpservletResponse输出数据时,一定要设置编码字符集,否则出现乱码或者为空如: resp.setContentType("text/html;charset=utf-8");//设置编码如果是在json中,使用HttpservletResponse输出数据,这样设置: resp.setContentType("application/json;charset=utf-8");//设置编码...原创 2021-10-28 13:21:30 · 242 阅读 · 0 评论 -
如果在 SpringBoot核心配置文件中有中文信息,会出现乱码
1.一般建议在配置文件中,不建议出现中文(注释除外)2。如果有,请看下面步骤:点击左上角的file 再点击settings进入设置温馨提醒:大家如果从其他地方拷贝的配置文件,一定要把里面的空格删除干净如:...原创 2021-10-28 11:06:00 · 199 阅读 · 0 评论 -
idea显示java: 错误: 无效的源发行版:16
点击:file>Project Structure>Project 中jdk版本最好改为1.8版本的,或者 低于或等于14版本的原创 2021-10-27 13:07:18 · 10532 阅读 · 0 评论