![](https://img-blog.csdnimg.cn/20190918140037908.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
常用报错
记录采坑之路
尽力漂亮
世间皆苦唯有自渡,他人爱莫能助
展开
-
Error: Flash Download failed - Target DLL has been cancelled
思路:开启debug的每次下载的自动重启。排查接线问题后看此文章。原创 2024-04-18 14:28:05 · 334 阅读 · 0 评论 -
Uncaught SyntaxError: Unexpected identifier
Uncaught SyntaxError: Unexpected identifier当你传进去的是字符串的时候: 要带有引号才可以,不然是会报错的。当参数是 json 对象时: 用拼接字符串的方式构建html,只能拼接字符串,对象是没办法拼接的。 当进去的是对象时候,当你触发事件的时候,你将得到的是([object Object]) 这里[object Object]会引起 Uncaught SyntaxError: Unexpected identifier 在这里还会遇到一个问题就是原创 2021-03-05 15:44:19 · 3364 阅读 · 0 评论 -
【redis常用报错】MISCONF Redis is configured to save RDB snapshots, but is currently not able
MISCONF Redis is configured to save RDB snapshots, but is currently not able原因强制关闭Redis快照导致不能持久化。解决方案将stop-writes-on-bgsave-error设置为no原创 2021-03-05 13:34:37 · 255 阅读 · 0 评论 -
layUI动态生成html后重新渲染的方法
layui.use(['form', 'layer'],function(){ var form = layui.form, layer = layui.layer; form.render();//关键代码 });原创 2021-02-26 11:16:55 · 822 阅读 · 0 评论 -
redis:java.lang.ClassCastException: java.lang.Long cannot be cast to [B
redis 总是报错 java.lang.ClassCastException: java.lang.Long cannot be cast to [B解决办法键值设置过期时间 this.redisTemplate.opsForValue().set(key, value, time, TimeUnit.SECONDS);原创 2021-02-07 14:12:20 · 2134 阅读 · 3 评论 -
springboot 打包踩坑+springboot整合tk.mapper xml扫描不到
springboot 打包踩坑+tkmybatis踩坑springboot版本问题xml放java下面解决xml放resource下面springboot版本问题解决:版本问题换成<version>2.3.4.RELEASE</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo原创 2021-01-26 12:32:00 · 475 阅读 · 0 评论 -
11.25新手idea+tomcat报错总结日志
参考文章SpringBoot访问不了JSP但却能进入后台原创 2019-11-25 10:08:12 · 345 阅读 · 0 评论 -
Tomcat 无项目部署报错 Control character in cookie value or attribute 解决方法
在Windows下,Eclipse使用的内部浏览器(Window->Web Browser->Internal Web Browser)是系统自带的IE浏览器。在代码中没有使用Cookie时,Tomcat报错 Control character in cookie value or attribute,解决1.在IE的设置(右上角的小齿轮)中删除Cookie(设置(右上角小齿轮)—...原创 2019-11-24 15:33:16 · 425 阅读 · 1 评论 -
Maven的默认中央仓库以及修改默认仓库&配置第三方jar包从私服下载
Maven的默认中央仓库以及修改默认仓库&配置第三方jar包从私服下载当构建一个Maven项目时执行顺序如下:默认中央仓库的地址:重点maven替换中央仓库- 阿里云当构建一个Maven项目时执行顺序如下:1、从本地资源库中查找并获得依赖包,如果没有,执行第2步。2、从Maven默认中央仓库中查找并获得依赖包(http://repo1.maven.org/maven2/),如果没有,...原创 2020-04-24 15:33:51 · 1051 阅读 · 0 评论 -
IntelliJ IDEA pom依赖问题报错 Maven Project Dependencies红色波浪线报错
IDEA的Maven依赖如何引入到External Libraries中第一问题描述对于 idea 下的 maven 工程,特别是从其他地方导入的新工程,右边 maven 管理工具中 dependencies 若出现红色波浪线。通常用以下方式尝试解决。1、检查 repository 和 settings.xml文件中配置的仓库地址,File --> settings 输入maven,...原创 2020-01-09 18:59:02 · 2078 阅读 · 0 评论 -
maven环境搭建
maven环境搭建1. Maven简单介绍2. 什么是自动构建工具?3.常用的自动构建工具4. Maven安装与配置4.1 下载maven安装包,解压即可使用4.2 配置maven环境变量4.3 验证4.4 修改“MAVEN_HOME\config”下的setting.xml文件,配置本地仓库。注意是:“E:/”而非“E:\”4.5 maven插件安装与配置5. Maven的使用:创建Maven...原创 2019-08-19 20:36:18 · 267 阅读 · 0 评论 -
解决:Tomcat启动提示At least one JAR was scanned for TLDs yet contained no TLDs
文章目录一.问题描述二.问题原因三.问题解决3.1 解决步骤3.2 从Tomcat的Bin目录中启动服务器3.3 Eclipse启动Tomcat一.问题描述报错内容十月 11, 2019 9:02:09 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Servi...原创 2019-10-11 23:06:55 · 4572 阅读 · 0 评论 -
MVC思路与错误解决总结
mvc增强通过XML对自定义mvc框架进行增强任务:用mvc完成加减乘除准备:导4个jar包案例未mvc增强准备:DispatcherServlet中央控制器package wxm_mvc;/** * 中央控制器 * 作用: * 接受用户请求,通过用户请求的url寻找制定的子控制器去处理业务 * @author 2019071003 * */ import java.io....原创 2019-07-25 18:13:49 · 272 阅读 · 0 评论 -
通用分页思路以及问题解决(上)
1.SQL语句异常com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use ne...原创 2019-07-23 16:09:35 · 233 阅读 · 0 评论 -
总结-JSP自定义标签select与报错
上一次博客介绍了自定义标签的详细步骤,今天回顾一下自定义标签的开发及使用步骤1 创建一个标签助手类(继承BodyTagSupport) 标签属性必须助手类的属性对应、且要提供对应get/set方法 rtexprvalue2 创建标签库描述文件(tld),添加自定义标签的配置 注:tld文件必须保存到WEB-INF目录或其子目录3 在JSP通过taglib指令导入标签库,并通过指...原创 2019-07-19 11:03:41 · 932 阅读 · 0 评论 -
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lett
Redis版本问题 小编在做redis缓存token时碰到的版本问题:解决办法就是不加set(key,value,time,?????) 或者升级到2.6以上只加前三个参数我的redis版本 2.4.5org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unk原创 2020-12-24 10:54:59 · 4423 阅读 · 0 评论 -
springboot+jwt+springSecurity微信小程序授权登录问题
springboot+jwt+springSecurity+uniapp微信小程序授权登录问题微信小程序授权登录问题思路参考文章总的来说的用户认证关键点总结场景重现:1.微信小程序向后台发送请求 ——而后台web采用的springSecuriry没有token生成,就会拦截请求,,所以小编记录下这个问题微信小程序授权登录问题思路参考网上一大堆资料 核心关键字: 自定义授权+鉴权 (说的通俗就是解决办法就是改造springSecurity的过滤器)参考文章https://blog.csdn原创 2020-12-09 16:28:42 · 3726 阅读 · 3 评论 -
JAR启动项目org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 1; 文件提前结束
(SpringBoot能正常启动,但是打成jar全是报这个错误)Error:org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 1; 文件提前结束1.查看xml格式是否有头部信息:<?xml version="1.0" encoding="utf-8"?>2.查看xml 是否格式不正确(没有结束标签等),可看控制台中有错误标志的xx.xml文件,进行检查。(SpringBoot能正常启动,但是打成jar全是报这个错误.原创 2020-12-04 14:18:25 · 1656 阅读 · 0 评论 -
java时间处理:java.lang.IllegalArgumentException
java.lang.IllegalArgumentException解决 public static Date getNowDate(){ //处理时间,默认查询半年之内的工单就可以了 Calendar cal = Calendar.getInstance(); return cal.getTime(); } @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT原创 2020-12-02 14:47:58 · 818 阅读 · 0 评论 -
No MyBatis mapper was found in ‘[com.shbykj.pro_voc.mapper]’ package. Please check your configuratio
springboot@ResponseBody详解该注解加了后不会走视图No MyBatis mapper was found in ‘[com.shbykj.pro_voc.mapper]’ package. Please check your configuration.原创 2020-11-20 16:52:25 · 273 阅读 · 0 评论 -
jquery.js:5 Uncaught TypeError: Illegal invocation
jquery.js:5 Uncaught TypeError: Illegal invocation解决String与Long类型转换注意:不然mapper不能识别!正确写法:Long.parseLong(xxx)原创 2020-11-20 16:51:33 · 929 阅读 · 0 评论 -
mongdb操作异常合集
Field addressMapper in com.shbykj.springboot.monitor.controller.AddressController required a bean named ‘mongoTemplate’ that could not be found.原创 2020-11-20 16:49:38 · 291 阅读 · 0 评论 -
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.jso
文章目录问题解决方法总结问题报错:com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.json.JSONObject and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS原创 2020-11-17 11:04:22 · 905 阅读 · 0 评论 -
springboot整合mongdb
报错Failed to instantiate [java.util.List]: Specified class is an interface思路一这个错误是由于在对应的 实体类中没有定义mongo数据库自动产生的 _id属性。思路二这个错误是由于在对应的 实体类中映射失败报错之前我写的是LIst,所以提示实体类映射util.list错误,不知道啥类型就写object就对了...原创 2020-10-28 14:06:54 · 127 阅读 · 0 评论 -
后端把Long类型的数据传给前端,前端可能会出现精度丢失的情况,以及解决方案
在实体类加上import com.fasterxml.jackson.annotation.JsonFormat;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;@JsonSerialize(using = ToStringSerializer.class)原创 2020-10-23 14:51:45 · 456 阅读 · 0 评论 -
Mybatis异常
Mybatis异常合集Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column ‘id’ in order clause is ambiguous;Column ‘id’ in order clause is ambiguous; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintV原创 2020-10-22 16:58:16 · 489 阅读 · 1 评论 -
layui 的嵌套页面异常Refused to display in a frame because it set ‘X-Frame-Options‘ to ‘DENY‘
响应头中X-Frame-Options被设置为DENY,如下图解决方案:import org.springframework.boot.autoconfigure.EnableAutoConfiguration;import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;import org.springframework.context.annotation.Configura原创 2020-10-15 08:12:20 · 551 阅读 · 0 评论 -
springboot项目报错日志1011
解决思路:properties文件不能识别 'helloController': Injection of autowired dependencies failed Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'mysql.driver' in value "${mysql.driver}"解决:在启动文件加上@SpringBootApplication(exclude= {DataSou原创 2020-10-12 07:57:30 · 586 阅读 · 0 评论 -
tomcat部署maven,tomcat启动了,项目资源找不到
关于maven项目tomcat启动成功但是项目访问不了的问题注意查补补注意查首先去看一下tomcat根路径下有没有将页面加载到webapps目录下:补只有类路径下的东西,没有把页面发布上去。对于此种情况回到eclipse中。做如下操作:右击项目–>选中Build Path选项 -->选中Configure Build Path -->选中Deployment Assembly应该看到的是这样:补...原创 2020-10-11 13:24:05 · 1189 阅读 · 0 评论 -
java.lang.IllegalStateException: Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContext首先排查,是否添加了这两个文件原创 2020-10-10 10:19:40 · 1669 阅读 · 0 评论 -
Eclipse使用debug模式启动项目时提示45s超时的解决办法
问题描述:在Eclipse中启动tomcat的正常模式时,可以对web项目正常的访问,但是要使用debug模式启动这个项目的话,速度开始变得特别慢,一直处于启动状态,没过一会,就会弹出一个提示框(错误如下),提示45s超时。错误:Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout原创 2020-05-13 09:17:41 · 515 阅读 · 0 评论 -
java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.getEn
严重: Exception sending context initialized event to listener instanceof class org.springframework.web.context.ContextLoaderListenerjava.lang.NoSuchMethodError:org.springframework.web.context.Config...原创 2020-05-06 15:32:41 · 1562 阅读 · 0 评论 -
The type 'BASE64Encoder' is not API (restriction on required library 'D:\inipath\Java\jre\lib\rt.jar
右击项目properties原创 2020-05-06 15:03:38 · 681 阅读 · 0 评论 -
工作记录——ssm实现修改密码
注意点Controller层@RequestMapping怎么用,为什么,@ResponseBody怎么用,为什么,这两个一起用为怎么样@RequestMapping(“dtmNeibaoPasswordEditForwardAction”)和@ResponseBody多写了@responsebody就是一直跳不到jsp,而是显示了这个字符串该页面使用非标准属性“zoom”。请考虑在相...原创 2020-04-26 17:40:56 · 1792 阅读 · 0 评论 -
Non-parseable settings settings.xml: end tag name
报错信息[FATAL] Non-parseable settings D:\inipath\apache-maven-3.6.3\conf\settings.xml: end tag name must match start tag name from line 170 (position: TEXT seen …\r\n -->\r\n… @268:12) @ D:\inipa...原创 2020-04-24 16:43:51 · 5943 阅读 · 0 评论 -
踩坑记录——rabbitmq主页不能访问/rabbitmq访问不了本机+15672
rabbitmq下载安装入门若是报错:参考以下排查方法一、下载最新的rabbitmqdocker pull rabbitmq二、下载完以后启动容器docker run -d -p 5672:5672 -p 15672:15672 --name myrabbitmq 镜像id三、 docker ps -a 查看正在运行的容器四、进入阿里云的控制台 在安全组—》》添加15...原创 2020-03-01 19:08:11 · 1850 阅读 · 0 评论 -
springcloud的Eureka服务注册中心的集群搭建
文章目录springcloud的Eureka服务注册中心的集群搭建前言集群概念集群搭建application.yml文件集群三合一springcloud的Eureka服务注册中心的集群搭建前言本章是讲述一个**Eureka(服务注册中心)**如何搭建成一个集群。那么先讲一下集群有个什么用?比如说:一共有a,b,c三个服务注册中心,三个分别对应这a模块,b模块,c模块如果不是集群的话,...原创 2020-01-10 17:12:05 · 1094 阅读 · 3 评论