Error creating bean with name ‘attrAttrgroupRelationController‘

简介: Error creating bean with name ‘attrAttrgroupRelationController‘

org.springframework.beans.factory.UnsatisfiedDependencyException:

Error creating bean with name 'attrAttrgroupRelationController':

Unsatisfied dependency expressed through field 'attrAttrgroupRelationService';

nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:

Error creating bean with name 'attrAttrgroupRelationService': Unsatisfied dependency expressed through field 'baseMapper';

nested exception is org.springframework.beans.factory.BeanCreationException:

Error creating bean with name 'attrAttrgroupRelationDao' defined in file


1d4fe6d6ec7844b8b51d685cc2137997.png

解决:

网上方法参考之后判定不是注解的问题,也不是没有exlude的问题。初步判定为springboot版本问题。将springboot版本从2.3.10降至2.1.8,springcloud从H版降至G版即可。注意springboot-springcloud-springcloud alibaba三者之间对应的版本关系



javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure


The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

### The error may exist in com/cloud/mail/product/dao/CategoryDao.java (best guess)

### The error may involve com.cloud.mail.product.dao.CategoryDao.selectList

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure


解决:

查询网上攻略,说是jdk1.8版本导致SSL调用权限出现问题。只需要在连接数据库的时候,加上userSSL=false即可。无需到java.security中删除SSLV3协议。  

相关文章
|
Kubernetes Ubuntu Linux
超详细的 Vagrant 上手指南,搭建Linux虚拟机别再用VMware Workstation了!
超详细的 Vagrant 上手指南,搭建Linux虚拟机别再用VMware Workstation了!
3654 0
超详细的 Vagrant 上手指南,搭建Linux虚拟机别再用VMware Workstation了!
|
XML Java 测试技术
SpringBoot入门篇 01、Springboot入门及配置(二)
SpringBoot入门篇 01、Springboot入门及配置(二)
|
IDE 关系型数据库 MySQL
SSLHandshakeException: No appropriate protocol
SSLHandshakeException: No appropriate protocol 最近 很多 询问关于 DataGrip或其他JetBrains`家IDE的MySQL数据库配置中报错的问题。具体的报错信息大概是这样的:
2164 0
|
自然语言处理 Docker 容器
elasticsearch-analysis-ik分词器下载与安装
elasticsearch-analysis-ik分词器下载与安装
3752 0
elasticsearch-analysis-ik分词器下载与安装
|
10月前
|
SpringCloudAlibaba Dubbo Java
【SpringCloud Alibaba系列】Dubbo基础入门篇
Dubbo是一款高性能、轻量级的开源Java RPC框架,提供面向接口代理的高性能RPC调用、智能负载均衡、服务自动注册和发现、运行期流量调度、可视化服务治理和运维等功能。
【SpringCloud Alibaba系列】Dubbo基础入门篇
|
消息中间件 JSON Java
Spring Boot、Spring Cloud与Spring Cloud Alibaba版本对应关系
Spring Boot、Spring Cloud与Spring Cloud Alibaba版本对应关系
24206 0
|
JavaScript Java 应用服务中间件
|
存储 NoSQL Java
成功解决:CentOS7中无法连接网络
这篇文章介绍了如何解决CentOS 7虚拟机无法连接网络的问题。作者猜测问题可能是由于虚拟机软件的网关和CentOS 7系统的网关不一致导致的。文章提供了两种解决方案:修改虚拟网络编辑器的网关或修改CentOS系统的网关和IP地址。作者选择了后者,并演示了如何在CentOS终端中以root用户身份修改IP和网关。
成功解决:CentOS7中无法连接网络
|
Java Maven
完美解决导入aliyun-oss-spring-boot-starter导入依赖报错
完美解决导入aliyun-oss-spring-boot-starter导入依赖报错
2380 0
完美解决导入aliyun-oss-spring-boot-starter导入依赖报错