![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
踩过的坑
这个专栏用来记录在学习中遇到的bug踩过的坑
小鱼干会有的
这个作者很懒,什么都没留下…
展开
-
记录项目启动报错
项目启动报错:java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext使用的jdk11,改为jdk8即可原创 2021-11-17 16:36:29 · 168 阅读 · 0 评论 -
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Every derived table must have its
执行sql报错### The error occurred while setting parameters### SQL: select count(0) from (SELECT DISE_SCO_SETL_INFO_ID, RID, SETL_ID, DIAG_CODE, DIAG_NAME, POOLAREA_NO, DISE_SCO,原创 2021-09-08 10:02:36 · 1079 阅读 · 0 评论 -
Iterator.next()
在使用iterator处理数据时发现两次获取iterator.next()的值不同应该使用一个变量去接受iterator.next(),否则第二次获取的是第一次获取的iterator.next()的next()原创 2021-09-06 17:09:37 · 885 阅读 · 0 评论 -
数据库连接超时
mybatis查询数据库时报错:ERROR com.alibaba.druid.pool.DruidPooledStatement.errorCheck(367) -CommunicationsException, druid version 1.1.17, jdbcUrl : jdbc:mysql://172.18.20.29:3306/mpp_payment?connectTimeout=1000&socketTimeout=3000&autoReconnect=true&原创 2020-09-16 11:16:47 · 1806 阅读 · 1 评论 -
vue项目报错——$axios is no defined
vue项目报错——$axios is no defined1、在main.js中加入如下代码:import axios from 'axios'Vue.prototype.$axios = axios2、在app.vue中改成:this.$axios .get('http://localhost:8084/demo/user/userList') .then(response => (this.items = response)) .catch(func原创 2020-05-22 14:58:14 · 652 阅读 · 0 评论 -
使用PageHelper踩的一个小坑
使用PageHelper踩的一个小坑之前使用PageHelper都没有问题,今天使用时发现查询出来的数据没有分页。一开始的代码时这样的public PageInfo<OrderDetailBean> notSaleOrder(Integer pageNo,Integer clientId) { PageHelper.startPage(pageNo,3); // 1、查询该客户对应的所有订单编号 List<Integer> orderIds原创 2020-05-17 14:15:10 · 205 阅读 · 0 评论 -
从数据库查询出来的Date类型的数据显示在页面时变成了一串数字
从数据库查询出来的Date类型的数据显示在页面时变成了一串数字解决:在JavaBean的时间字段上添加如下注解@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8") private Date iwDate; // 入库时间...原创 2020-04-24 22:13:26 · 3081 阅读 · 1 评论 -
将Java中java.util.Date类型的本地时间转变成Mysql中的Date类型
将Java中java.util.Date类型的本地时间转变成Mysql中的Date类型Date date= new java.sql.Date(new java.util.Date().getTime());原创 2020-04-24 21:24:01 · 331 阅读 · 0 评论 -
mapper.xml放在src目录下需要注意的事项
mapper.xml放在src目录下需要注意的事项当mapper.xml写在src目录下时,我们要在pom中加上如下代码,否则,在启动项时mapper.xml不会被加载到target中,调用时就会找不到这个mapper.xml.<build> <resources> <resource> ...原创 2020-03-11 17:55:16 · 822 阅读 · 0 评论 -
找不到或无法加载主类 com.qf.ShopCartApplication
标题github团队协作时,从github上下载下来的代码启动启动类报错C:\Java\jdk1.8.0_131\bin\java.exe ...错误: 找不到或无法加载主类 com.qf.ShopCartApplicationProcess finished with exit code 1解决:如果出现错误,就将错误解决,然后再启动启动类。...原创 2020-03-10 15:03:59 · 505 阅读 · 0 评论 -
Error creating bean错误记录及解决
使用SSM框架启动时报错警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapperScan' d...原创 2020-01-15 20:40:42 · 2325 阅读 · 0 评论 -
使用spring框架时c3p0连接出错
使用spring框架时c3p0连接出错原因只导了一个c3p0包<dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.2</version></dependency&g...原创 2019-12-13 13:58:51 · 119 阅读 · 0 评论 -
IDEA打了断点但是debug运行不会执行断点
IDEA打了断点但是debug运行不会执行断点解决方法原创 2019-12-13 13:54:29 · 3479 阅读 · 4 评论 -
前端页面报错404JQuery包找不到
前端页面报错404JQuery包找不到原因版本问题解决方法把spring-webmvc的包改成了5.0.8版本的原创 2019-12-13 12:17:22 · 572 阅读 · 2 评论