报错:Invalid bound statement (not found): com.ljxx.pts.dao.SitePriceMapper.selectByLike
摘要:如果你是Mybatis的话请注意yml或者properties文件里面的组件扫描 #指定mapper.xml的位置 mybatis.mapperLocations=classpath*:mapper/**/*Mapper.xml mybatis.configuration.map-underscor
阅读全文
posted @
2023-11-22 09:08
周文豪
阅读(18)
推荐(0)
报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.itheima.dao.JobMapper.selectJobAll(找不到mapper.xml)
摘要:报错如下: 解决办法: 在配置文件中指定mapper.xml的位置: mybatis.mapperLocations = classpath*:com/itheima/dao/mappers/*Mapper.xml,com/itheima/dao/secondMappers/*Mapper.xml,
阅读全文
posted @
2023-11-22 09:07
周文豪
阅读(54)
推荐(0)
报错:java.lang.String cannot be cast to java.time.LocalDateTime(2022-06-28T01:53:41.000+00:00 转换成 yyyy-MM-dd HH:mm:ss格式)
摘要:时间字符串如下:2023-09-12T16:00:00.000+00:00 错误代码: LocalDateTime orderTime1 = (LocalDateTime) o1.get("create_time"); 解决办法: (1)、先转换成yyyy-MM-dd HH:mm:ss格式 Stri
阅读全文
posted @
2023-09-06 16:45
周文豪
阅读(851)
推荐(0)
BUG:Error: Invalid navigation guard或The "next" callback was never called inside of :
摘要:错误代码: router.beforeEach(async (to, from, next) => { NProgress.start() const token = store.getters.token; debugger if (whiteList.indexOf(to.path) !== -
阅读全文
posted @
2023-03-10 11:34
周文豪
阅读(3319)
推荐(0)
报错:No converter for [class com.ljxx.model.Result] with preset Content-Type ‘application/octet-stream;charset=UTF-8’
摘要:原因分析:下载文件后文件流关闭,但返回了成功和失败的Result。 解决:将return Result.operating("导出成功!", true, ResultCode.SUCCESS);改为return null; @PostMapping("/exportExcel")public Res
阅读全文
posted @
2022-09-26 18:32
周文豪
阅读(8366)
推荐(0)
BUG:JSONObject转实体类时空字符串变成1970-01-01
摘要:一、问题描述 接口文档中,由于过期时间为非必填,故请求体中只输入了空字符串: 请求体中 "expireDate":"", 但是在将JSONObject转成实体类的时候出现了空字符串变成了Date类型的日期的情况,其中实体类中expireDate为Date类型。 存储到数据库中如下: 二、解决办法:
阅读全文
posted @
2022-09-21 17:56
周文豪
阅读(356)
推荐(0)
报错:this.$set is not a function
摘要:报错如下: 错误代码 // 表格序号 let nosort = 0 for(let n in this.spanArr){ if(this.spanArr[n]>0){ nosort += 1 this.$set(this.list[n],'nosort',nosort) this.$forceUp
阅读全文
posted @
2022-09-14 17:17
周文豪
阅读(2476)
推荐(0)
报错:FUNCTION .to_char does not exist(to_char与date_format)
摘要:错误代码: <if test="startDate!=null and startDate!=''"> AND to_char(o.order_time, 'yyyy-mm-dd') <![CDATA[>=]]> #{startDate}</if><if test="endDate!=null an
阅读全文
posted @
2022-08-17 10:53
周文豪
阅读(7907)
推荐(1)
解决vue3中select下拉框显示数字的问题
摘要:异常情况如下: 代码如下: <el-form-item label="种源类型:" prop="sourceType"> <el-select v-model="entity.sourceType" style="width: 300px;" filterable placeholder="请选择"
阅读全文
posted @
2022-08-12 16:33
周文豪
阅读(2015)
推荐(0)
报错:Error occurred while trying to proxy request /api/captcha/code from 192.168.43.242:9528 to http://192.168.43.242:8008
摘要:报错如下: [HPM] Error occurred while trying to proxy request /api/user/getInnerLabel from 192.168.43.242:9528 to http://192.168.43.242:8008 (ECONNREFUSED)
阅读全文
posted @
2022-06-17 14:10
周文豪
阅读(2175)
推荐(0)
报错:SAX2 driver class org.apache.xerces.parsers.SAXParser not found
摘要:一、报错 报错如下: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found at org.xml.sax.helpers.XMLReaderFactory.loadClass
阅读全文
posted @
2022-06-09 11:13
周文豪
阅读(1633)
推荐(0)
报错:the request was rejected because its size (11579386) exceeds the configured maximum (10485760)
摘要:一、报错 导入excel文件时报错,报错如下: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (1
阅读全文
posted @
2022-06-09 10:58
周文豪
阅读(2737)
推荐(0)
报错: java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell
摘要:报错如下: Exception in thread "main" java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell at org.apache.poi.xssf.usermodel.XSSFC
阅读全文
posted @
2022-05-30 09:42
周文豪
阅读(1137)
推荐(0)
linux服务器登录mysql报错-bash: mysql: command not found
摘要:mysql启动后,登录mysql报错如下: 原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的
阅读全文
posted @
2022-05-23 09:47
周文豪
阅读(214)
推荐(0)
报错:There is no getter for property named 'distinct' in
摘要:原因分析: selectByExample()方法传递的参数错误,应该传example类型,而不是实体类。 错误代码如下: @Override public PlantGrow selectPlantGrow(PlantGrow plantGrow1) { List<PlantGrow> plant
阅读全文
posted @
2022-05-16 20:37
周文豪
阅读(362)
推荐(0)
报错:违反检查约束条件 (GYPTS.SYS_C0016857)
摘要:报错如下:Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02290: 违反检查约束条件 (GYPTS.SYS_C0016857) 原因分析:以前将字段PLANT_USER不能为空该为可以为空,但是在检查中,仍然会对PLAN
阅读全文
posted @
2022-05-16 19:39
周文豪
阅读(115)
推荐(0)
报错:错误: 找不到或无法加载主类 com.jawasoft.Application
摘要:解决办法: 在lifeCycle中,先执行clean,再执行install。即可
阅读全文
posted @
2022-05-14 16:01
周文豪
阅读(185)
推荐(0)
Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72)
摘要:报错如下: ERROR Failed to compile with 42 errors 15:15:24 error in ./src/styles/index.scss Module build failed (from ./node_modules/sass-loader/lib/loader
阅读全文
posted @
2022-04-07 15:22
周文豪
阅读(428)
推荐(0)
window系统下 解决MySQL 8报错sql_mode=only_full_group_by:this is incompatible with sql_mode=only_full_group_by
摘要:1、原因分析 这个错误发生在mysql 5.7 版本及以上版本会出现的问题:mysql 5.7版本默认的sql配置是:sql_mode="ONLY_FULL_GROUP_BY",这个配置严格执行了"SQL92标准"。 很多从5.6升级到5.7时,为了语法兼容,大部分都会选择调整sql_mode,使其
阅读全文
posted @
2022-04-07 10:57
周文豪
阅读(1865)
推荐(0)
oracle数据库报错:ORA-00001: 违反唯一约束条件
摘要:报错: INSERT INTO "B_PLANT_GROW_OTHER"("OTHER_ID", "PLANT_GROW_ID", "WORK_TYPE", "WORK_DESC", "WORK_DATE", "OPERATOR", "CREATE_TIME", "UPDATE_TIME", "CR
阅读全文
posted @
2022-03-22 17:12
周文豪
阅读(5772)
推荐(0)