随笔分类 -  疑难杂症

java:[5,51] 程序包com.alibaba.dru id.spring.boot.autoconfigure不存在
摘要:一、报错信息 二、解决方案 mvn -U idea:idea
42
0
0
Data length too large: 10710120, max payload: 8388608, channel: NettyChannel [channel=[id: 0x09396776, /10.195.2.51:48887 => /10.195.2.21:20881]]
摘要:1、报错信息 cause: java.io.IOException: Data length too large: 10710120, max payload: 8388608, channel: NettyChannel [channel=[id: 0x09396776, /10.195.2.51
173
0
0
MyBatis-Plus - 分页查询 selectPage 返回 total 为 0
摘要:一 解决方案 package com.zeal.base.config; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import org.springframework.context.annot
456
0
0
Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings. Error message: Cannot download 'https://start.spring.io': connect timed out
摘要:1、问题描述 用IDEA新建项目报错 2、解决方案 换成阿里云的链接啦 https://start.aliyun.com/ SUCCESS
89
0
0
SpringSecurity 集成 JWT 报错 Access is denied 不允许访问
摘要:1、具体业务场景及报错信息 在给 接口 做访问控制时 使用(这里已经开启了开启基于方法的安全认证机制 @EnableGlobalMethodSecurity(prePostEnabled = true)) @PreAuthorize("hasAuthority('sys:role:perm')")
1172
0
0
循环依赖 The dependencies of some of the beans in the application context form a cycle:
摘要:1 报错信息 2 解决方案 检查发现 在 SysUserServiceImpl 依赖注入 了 一个 SysMenuService 在SysMenuServiceImpl 里面又去依赖注入了一个 SysUserService 依赖注入循环 3 删掉单方面的一个即可启动成功
423
0
0
SpringSecurity 报错 Bad credentials
摘要:1 、解决方案 一般是密码匹配错了,如果确认密码是对的还是报错 , 看看 将密码给SpringSecurity 托管验证的时候是否导错包 导成默认实现的类 UserDetailsService 时会也报这个错
1731
0
0
Spring Cloud OAuth2中访问/oauth/token报401 Unauthorized问题的解决(POSTMAN)
摘要:一 、报错信息 { "timestamp": "2022-04-27T13:58:47.916+0000", "status": 401, "error": "Unauthorized", "message": "Unauthorized", "path": "/oauth/token" } 二、解
5352
0
1
SpringSecurity自定义登录页面跳转时访问页面302
摘要:1 问题原因 登录时报302 2 SecurityConfig 配置 关闭 csrf 跨站请求伪造 还是报错 package com.mangoubiubiu.security.config; import org.springframework.context.annotation.Bean; i
1086
1
1
[ERR] Node 192.168.117.134:6379 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
摘要:1、问题描述:redis 集群启动报错 2、解决方案 重启 在redis src 目录下执行 redis-cli --cluster create --cluster-replicas 1 192.168.117.134:6379 192.168.117.134:6380 192.168.117.1
563
0
0
ERROR in ch.qos.logback.core.joran.spi.Interpreter@73:41 - no applicable action for [AppenderRef], current ElementPath is [[Configuration][Loggers][Root][AppenderRef]]
摘要:1、错误原因 SpringBoot 引入 rocketmq-spring-boot-starter 报错 2、解决方案-排除依赖 <dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-spring-boot-
1185
0
0
springboot+mybatis-plus+mysql+Apollo 插入中文乱码
摘要:技术:SringBoot+mybatis-plus+mysql + Apollo配置中心,mysql 在docker上 1 问题分析 Junit 测试插入数据中文乱码 2 问题排查 一丶 怀疑是mysql编码有问题 进入docker容器 sudo docker exec -it 679 bash 6
343
0
0
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone
摘要:1 报错信息 Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents
21
0
0
Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed
摘要:1 问题分析 dev 环境配的是192.168.56.12 而且 拉取配置 的地址是 172.17.0.3 eureka 的ip 也是 172.17.0.3 开头的 2 解决方案 docker 容器启动时配置地址 EUREKA_INSTANCE_IP_ADDRESS=192.168.56.12 停掉
971
0
0
Forbid consumer 10.1.xx.xx access service com.xx.xx.service
摘要:使用dubbo 调同事的提供者报这个错。网上百度了一下 报错原因就几个 1丶消费者 和 提供者的指定的version 版本 不一样 2丶注册中心地址写错 3丶dubbo控制台把消费方给禁掉了 4丶提供者没起起来 最后发现同事的提供者确实没起起来
137
0
0
Cannot resolve configuration property 'dubbo.application.name'
摘要:1 问题描述 idea application.properties 文件报警告 不能解析到 2 解决方案 我之前引入的是这个依赖 <!--导入dubbostarer--> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>du
492
1
1
org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。
摘要:1 问题描述 (WebService + cxf) webservice 调用出错 2 解决方案 服务端放实现类(我之前报错放的接口。。。) 客户端放接口 3 success
212
0
0
Windows 下杀死端口
摘要:1 查看端口状态 netstat -ano | findstr 8080 2 杀死端口 taskkill /pid 16588 /f:杀掉占用8080端口的16588
103
0
0
[Vue warn]: Unknown custom element: - di
摘要:解决方案 main.js 中引入 import Element from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.use(Element) 成功解决
419
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起