当前位置:网站首页>Error creating bean with name ‘stringRedisTemplate‘ defined in class path re
Error creating bean with name ‘stringRedisTemplate‘ defined in class path re
2022-07-02 01:10:00 【闲言博客】
错误产生环境
SpringBoot项目连接整合Redis数据库时产生
错误描述
Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_101]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_101]
... 71 common frames omitted
错误原因
spring-boot-starter-data-redis 默认采用 lettuce作为redis客户端, lettuce 底层采用 netty实现 , 可以在多个线程中并发访问,且线程安全,在使用lettuce需要配置线程池**
解决办法
在maven中引入 线程池,如下依赖zone=GMT
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.9.0</version>
</dependency>
边栏推荐
- [eight sorts ①] insert sort (direct insert sort, Hill sort)
- The first "mobile cloud Cup" empty publicity meeting, looking forward to working with developers to create a new world of computing!
- AIX存储管理之卷组的创建(一)
- You probably haven't noticed the very important testing strategy in your work
- [eight sorts ②] select sort (select sort, heap sort)
- S32Kxxx bootloader之UDS bootloader
- Slf4j print abnormal stack information
- 2022 high altitude installation, maintenance and removal of test question simulation test platform operation
- Sql--- related transactions
- 2022 operation of simulated examination platform for melting welding and thermal cutting work license
猜你喜欢

969 interlaced string

Output results of convolution operation with multiple tensors and multiple convolution kernels

RFID让固定资产盘点更快更准

Picture puzzle wechat applet source code_ Support multi template production and traffic master

教你白嫖Amazon rds一年并搭建MySQL云数据库(只需10分钟,真香)

AIX存储管理之逻辑卷的创建及属性的查看和修改
![[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login](/img/c1/23be4399119f42d85a7b86fc8a59fc.png)
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login

Based on Simulink and FlightGear, the dynamic control of multi rotor UAV in equilibrium is modeled and simulated

测试员8年工资变动,令网友羡慕不已:你一个月顶我一年工资

Develop a simple login logic based on SSM
随机推荐
970 golang realizes the communication between multithreaded server and client
Circular statements in shell programming
Hcip day 14 (MPLS protocol)
How do Lenovo computers connect Bluetooth headsets?
Mathematics - feelings -20220215
教你白嫖Amazon rds一年并搭建MySQL云数据库(只需10分钟,真香)
How to extract login cookies when JMeter performs interface testing
Recently, three articles in the nature sub Journal of protein and its omics knowledge map have solved the core problems of biology
Schrodinger's Japanese learning applet source code
How does schedulerx help users solve the problem of distributed task scheduling?
PLC Analog input analog conversion FB s_ ITR (Mitsubishi FX3U)
Otaku wallpaper Daquan wechat applet source code - with dynamic wallpaper to support a variety of traffic owners
AIX存储管理之总结篇
How to compress video size while adding watermark with one click?
cookie、session、tooken
Iclr2022 | spherenet and g-spherenet: autoregressive flow model for 3D molecular graph representation and molecular geometry generation
测试人进阶技能:单元测试报告应用指南
Global and Chinese market of picture archiving and communication system (PACS) 2022-2028: Research Report on technology, participants, trends, market size and share
Picture puzzle wechat applet source code_ Support multi template production and traffic master
Leetcode skimming: stack and queue 05 (inverse Polish expression evaluation)