
错误解决
星点灯丶
这个作者很懒,什么都没留下…
展开
-
idea debug启动不了 模式下 报错 ‘Connected to the target VM,address:‘127.0.0.1:58337‘,transport:‘socket‘’
控制台左下角小弹框报的是 :“Method breakpoints may dramatically slow down debugging”在改项目bug的时候,突然发现用debug模式怎么也启动不了,之前一直正常启动,不用debug能正常启动,翻译了一下这句话“Method breakpoints may dramatically slow down debugging”翻译如下:“方法断点可能会显著降低调试速度 ”解决方案:接下来就是一个类一个类找,于是在其中一个service类中的方法上发现了原创 2021-11-16 17:39:05 · 2614 阅读 · 0 评论 -
2021-08-20 解决layUi 选项卡切换表格大小不匹配问题
1、出现问题: 当选项卡中嵌套表格时,切换第二张表格会不适配2、解决问题<div class="layui-fluid"> <div class="layui-card layui-tab layui-tab-brief" lay-filter="table-change"> <ul class="layui-tab-title"> <li class="layui-this">巡检报告</li&g原创 2021-08-20 14:40:08 · 572 阅读 · 0 评论 -
关于junit测试类启动慢报错:failed to resolve org.junit.platform
今天解决一个报错,是在启动测试模块时出的问题。因为公司电脑不能联网,解决这个问题非常麻烦。解决方案:添加依赖,之前添加这个依赖一直不行,后来发现是版本的原因,如果不给版本号,在我这边添加这个依赖是没用的,必须给版本号,不过我测试了,给其他版本的依赖也可以 <dependency> <!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:1.3.2 not found errors --&.原创 2021-05-20 17:01:20 · 1345 阅读 · 0 评论 -
Spring security踩坑 form提交路径问题
踩坑:今天在阅读项目代码时遇到了问题,因为项目架构是基于Spring+SpringMVC+jsp+security实现的在看到登录页面的form表单提交只写了 /login,一直在找这个/login是哪个方法,最后发现这是security4.X的默认提交路径。因为之前没用过security,对于security框架不熟悉...原创 2021-05-14 14:09:38 · 371 阅读 · 0 评论 -
Error creating bean with name ‘tokenBean‘ defined spring找不到Bean
今天遇到一个奇葩的问题,报错为spring找不到beanorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenBean' defined in file [D:\workspace\git\cdn\target\cdn\WEB-INF\classes\com\common\model\TokenBean.class]: Invocation of init method fa原创 2021-05-14 11:16:41 · 320 阅读 · 0 评论 -
Exception in thread “main“ java.lang.UnsupportedOperationException Arrays.asList中add报错
public static void main(String[] args) { List<Integer> integers = Arrays.asList(new Integer[]{1, 2, 3, 4}); integers.add(5); integers.forEach(System.out::println); }以上代码执行add等方法报错如下:原因:Arrays.asList中的ArrayList集合来自(...原创 2021-02-05 23:18:45 · 110 阅读 · 0 评论 -
VUE中axios 报错 TypeError: Cannot set property ‘type‘ of undefined,
报错:导致axios里then的方法不执行问题:后台数据没有传到前端导致传的是一片空 不是null也不是 undefined 是没有东西导致resp响应为空在底层会报错以上在catch里做逻辑处理非常不推荐,我为了效果先这样,后面会改!!!解决:传递响应封装类或者至少传递一个true或false就能解决不让只能向上面一样在catch里面做逻辑处理。...原创 2021-01-21 23:22:52 · 3040 阅读 · 2 评论 -
Expected one result (or null) to be returned by selectOne(), but found: 7
在ssm中运行代码报错如下:org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 7检查发现查询mapping层数据接收问题,返回多条数据用对象无法接收解决方案:...原创 2021-01-18 20:19:16 · 1177 阅读 · 0 评论 -
关于shiro授权 This subject is anonymous - it does not have any identifying principals and authorization
在进行shiro前后分离授权时,报错如下。This subject is anonymous - it does not have any identifying principals and authorization operations require an identity to check against. A Subject instance will acquire these identifying principals automatically after a successful原创 2021-01-17 18:34:47 · 4801 阅读 · 0 评论 -
SpringMvc JavaMailSenderImpl 邮件发送时到时前端无法接受Json数据问题解决
//发送邮件通知密码重置成功 SimpleMailMessage mailMessage = new SimpleMailMessage(); mailMessage.setTo(email); mailMessage.setFrom("2*******6@qq.com");//一定要写,501 mail from address must be same as authorization user的错误 String text...原创 2021-01-16 18:01:09 · 379 阅读 · 0 评论 -
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.mar
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.mar.erp.sys.mapper.PermissionMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.b原创 2021-01-12 03:58:45 · 414 阅读 · 0 评论 -
Servlet.init() for servlet [SpringMVC] threw exception
javax.servlet.ServletException: Servlet.init() for servlet [SpringMVC] threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) or原创 2021-01-03 02:31:23 · 1665 阅读 · 0 评论 -
Mybatis与Spring集成 java.lang.StackOverflowError 问题
java.lang.StackOverflowError at com.zking.ssm.service.impl.CategoryServiceImpl.selectByAll(CategoryServiceImpl.java:51) ....堆栈问题解决方案:最后发现是依赖注入时,将service层注入给了service导致的!! 将mapper注入后解决...原创 2020-12-30 12:38:16 · 893 阅读 · 0 评论 -
SSM运行异常 org.springframework.beans.factory.UnsatisfiedDependencyException
No qualifying bean of type 'com.zking.ssm.service.IOrderService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}原因: 依赖注入的注解 @Servi原创 2020-12-30 09:47:34 · 201 阅读 · 0 评论 -
MySql中执行 GROUP BY 分组 遇到 1055错误
Mysql中执行sql语句报错,为什么同样类型的SQL语句,上面这个会报错,下面这个执行正常?原创 2020-12-06 10:02:04 · 207 阅读 · 0 评论 -
在JWT令牌转获取私有化声明时出错,java.util.LinkedHashMap cannot be cast to cn.mar.crm.sys.entity.SysUser
在JWT令牌转获取私有化声明时,执行以下代码时报错 String jwt = req.getHeader(JwtUtils.JWT_HEADER_KEY); Claims claims = this.validateJwtToken(jwt); SysUser user=(SysUser)claims.get("user");错误如下java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to cn.mar.原创 2020-12-01 09:05:00 · 433 阅读 · 2 评论 -
SSH2中 关于修改hbm.xml文件 中内容无效果的解决方式
在ssh2中修改了实体类映射文件XXXX.hbm.xml ,结果无论重启tomcat还是清空缓存都不生效。最后发现因为配置了JRebel热部署,导致JRebel里有缓存,情况JRebel缓存果断可以运行原创 2020-11-29 08:40:27 · 250 阅读 · 0 评论 -
io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature.
io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.jwt签名异常 ,检查jwt签名解决原创 2020-11-20 01:05:47 · 7504 阅读 · 6 评论 -
io.jsonwebtoken.ExpiredJwtException jwt令牌过期
io.jsonwebtoken.ExpiredJwtException: JWT expired at 2020-05-29T10:17:57Z. Current time: 2020-11-20T00:58:59Z, a difference of 15086462704 milliseconds. Allowed clock skew: 0 milliseconds.jwt令牌过期,需要重新签发令牌原创 2020-11-20 01:02:21 · 6839 阅读 · 0 评论 -
Access-Control-Allow-Origin跨域问题的报错以及解决
Access-Control-Allow-Origin跨域问题的报错以及解决这是浏览器控制台报错详情,在前后端分离,前段需要传数据进入后端时报的错解决方案:配置跨域过滤器1、先复制以下代码(过滤器)生成一个.java文件package com.zking.ssh.base.util;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.se原创 2020-11-16 00:48:39 · 2761 阅读 · 0 评论 -
JavaScript传参年月日格式日期自动运算问题解决
JavaScript传参年月日格式日期自动运算问题解决在javaScript中用ajax传递2020-10-07格式参数时,发现内部进行了运算最终解决之后的效果解决方法:利用转义字符和"的方式改变最终传递的参数类型,达到解决效果。注:利用 var xx=new String();进行格式转换,但是在传递参数时没有引用参数,一样会导致内部进行运算。注2:在拼接时需要注意单双引号的运用,必须使用转义字符和外部的引号进行拼接达到 :abc的效果...原创 2020-11-12 21:50:49 · 412 阅读 · 0 评论