踩过的坑
不过一念间
这个作者很懒,什么都没留下…
展开
-
【idea 报内存不足】
内存不足原创 2023-02-20 18:28:53 · 274 阅读 · 0 评论 -
【iCheck基本用法的使用】
单选框设置只读转载 2023-02-14 11:15:00 · 502 阅读 · 0 评论 -
浏览器三种模式
国产浏览器大多是双内核,甚至是三内核。一个Chromium内核,也就是Chrome使用的内核,切换到这个内核的模式一般叫极速模式;一个IE内核,称之为IE模式;有的甚至还有一个修改过的IE内核,称之为兼容模式。...原创 2022-05-09 10:51:27 · 1226 阅读 · 0 评论 -
前端数组赋值问题
这是表单里的内容,可以删除。第一次点击新增,进入表单,删除了;第二次点击新增,进入表单,要默认还是有这些信息。为此,我在表单 init() 方法中,先将原对象数据设置为 null, 再将备份对象数据赋值,但是发现,备份对象数据也会同步删除代码见下:// 原数组portList: [ { title: '渔港设施维护', status: '1', sit: '' }, { title: '渔船有序停泊', status: '1', sit: '' }, .原创 2022-03-05 11:01:09 · 778 阅读 · 0 评论 -
Cause: java.sql.SQLSyntaxErrorException: Unknown column ‘checId‘ in ‘where clause‘
报错信息:org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'checId' in 'where clause'### The error may involve defaultParameterMap### The error occurred while setting para原创 2022-02-21 17:22:10 · 1390 阅读 · 0 评论 -
Service为null,注入不成功
问题:Service 层为null,而其他接口是正常的通过尝试后,发现是接口访问权限的问题,将 private 改为 public 后,便可以了。原创 2022-02-11 21:24:12 · 2803 阅读 · 0 评论 -
【8082端口被占用】
8082端口被占用第一步: 打开 cmd,运行 netstat -ano获取8082端口对应的pid第二步: 运行 taskkill /F /pid 10366(第一步查看到的pid)第三步: 重启项目原创 2022-02-07 14:46:28 · 1164 阅读 · 0 评论 -
【数据错误导致的前端页面打不开】
数据错误导致的前端页面打不开本来可以正常打开的页面,下午忽然打不开了。也能正常访问后端,菜单跳转路径配置也都没问题。一开始一直纠结是不是路径配置错了,但是比对发现无误。看前端控制台,显示有个参数未定义,我就试着把它注释掉,又报其他参数未定义。发现反应过来,这说明后端获取过来的数据,没有这个参数的值。那为什么会好几个都没值呢?原来是我前面保存了一条错误数据,导致出现这个问题。到数据库中删除这条错误数据就好了。注意:开发一定要打开控制台,看是否报错。...原创 2022-01-25 17:54:03 · 673 阅读 · 0 评论 -
【git commit时无法提交】
一、问题描述使用git commit 命令提交代码,遇到下面的错误:$ git commit -m 'Test'fatal: Unable to create 'D:/MyProject/.git/index.lock': File exists.If no other git process is currently running, this probably means agit process crashed in this repository earlier. Make sure n转载 2022-01-21 11:41:14 · 3135 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.linewell.module
问题:生成代码后,发现报错报错信息:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.linewell.modules.base.lawenfinsp.chec.mapper.TbBChecMapper.findList at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.ja原创 2022-01-17 17:55:44 · 698 阅读 · 0 评论 -
To install it, you can run: npm install --save @/components/flowLog/index.vue
前端更新运行后报错运行提示的代码npm install --save @/components/flowLog/index.vue依然没用通过问同事,发现原来是路径错了,之前是 flowlog,后面改成了 flowLog,而我前端的目录还是之前的,所以错了。该成 flowLog 即可。总结:以后出现提醒安装那个vue文件的,其实就是路径错了,要检查一下...原创 2021-12-29 16:04:21 · 5641 阅读 · 0 评论 -
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
天坑在网上查了一个多小时,发现说来说去,不外呼两个原因一、在main方法所在的类忘记添加@SpringBootApplication二、缺少依赖,添加即可<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>但是我看我都有呀,就原创 2021-12-20 22:00:57 · 179 阅读 · 0 评论 -
Cannot read properties of undefined (reading ‘push‘) 问题
现象描述当点击列表页面中的修改按钮,进入表单页面,到对应页签中,点新增按钮,输完内容点击确定保存后,发现页签中对应的列表中没有增加刚刚新增的数据而若一开始便在列表页面,点击新增按钮,进入表单页面后,再到对应的页签中,新增记录在列表中是正常显示的若给表单中table绑定的数据加了 filter() ,点击列表中的修改按钮,发现无法进入表单页,一直卡住<el-table class="table" border :data="inputForm.tbBDevList.filter(funct原创 2021-12-09 17:23:33 · 51350 阅读 · 4 评论 -
代码提交时,信息写错了,在 IDEA 中如何修改
Git日志提交后,如果想修改,可以在IDEA的Git窗口中,选择自己提交的记录,右键Edit Commit Message进行修改,如果是自己提交的,但不能修改,右键Edit Commit Message是灰色的,不可选择,注意切换成相应的分支,也就是提交时的分支,IDEA右下角可以切换Git分支。...转载 2021-12-09 10:11:13 · 2333 阅读 · 0 评论 -
jsTree给节点添加自定义属性
问题: 后台构造 jsTree 格式数据时,需要返回自定义属性,可以采用下面方法:通过 li_attr 或者 a_attr 增加自定义属性。比如我要返回一个自定义属性 code,接口构造返回数据格式如下:Map<String, Object> map = Maps.newHashMap();Map<String, Object> cusProp = Maps.newHashMap();cusProp.put("code", tbBDocBook.getCode());原创 2021-11-24 17:52:45 · 1053 阅读 · 0 评论 -
JS将Fri Jan 01 2020 00:00:00 GMT+0800 (中国标准时间)时间格式转换成2020-01-01
JS将Fri Jan 01 2020 00:00:00 GMT+0800 (中国标准时间)时间格式转换成2020-01-01let yy = new Date(Fri Jan 01 2020 00:00:00 GMT+0800).getFullYear();let mm = new Date(Fri Jan 01 2020 00:00:00 GMT+0800).getMonth()+1;let dd = new Date(Fri Jan 01 2020 00:00:00 GMT+0800).getDa转载 2021-11-02 16:00:56 · 5675 阅读 · 0 评论 -
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
数据库连接不上 错误信息com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exception原创 2021-08-17 16:36:27 · 1161 阅读 · 2 评论 -
import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder;报错
报错:其实是自己不小心把 jdk 设为了11, 把jdk 设为 1.8就好了。原创 2021-08-10 16:33:52 · 156 阅读 · 0 评论 -
java.sql.SQLSyntaxErrorException: Unknown column ‘lng‘ in ‘order clause‘
内部错误,操作异常; ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column ‘lng’ in ‘order clause’ ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### Cause: java.sql.SQLSyntaxErrorExceptio原创 2021-08-10 11:10:02 · 1378 阅读 · 0 评论 -
TypeError: Cannot read property ‘length‘ of undefined at eval
前端页面报属性未定义点进去后,发现是此处的length错误,所以需要先查看后端返回的数据结果的类型,再进行调整点击 network ——> Response:查看到后端返回的结果如下:修改前端代码后,如下:到此,前端顺利调用后端接口,实现在用户前端输入名称时,校验数据库中是否已经存在该名字,如果存在,则提醒用户换一下名称,若不存在,则不进行错误提示。原因分析:由于我前端这部分代码是直接复制别人的代码模板,我只是改变了错误中文信息,但没注意后端接口返回结果的参数类型,别人后端返回的数原创 2021-07-23 11:24:28 · 3761 阅读 · 0 评论 -
1067 - Invalid default value for ‘UPDATE_TIME‘
创建数据库表报错:1067 - Invalid default value for ‘UPDATE_TIME’查了很多文章,都说是sql_mode 的值多了两个参数:NO_ZERO_IN_DATE和NO_ZERO_DATE说要删除,然后在my.init 中添加下面内容:sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION。原创 2021-07-19 15:08:33 · 601 阅读 · 0 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingExce
报错内容org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘shopCategory’ in ‘class com.imooc.o2o.entity.Shop’原因分析报错显示没有 shopCategory 的getter 方法,可能是 shop 实体类原创 2021-07-16 09:58:58 · 289 阅读 · 0 评论