当前位置:网站首页>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>
边栏推荐
- Cat Party (Easy Edition)
- XMind思维导图
- Basis of deep learning neural network
- Zak's latest "neural information transmission", with slides and videos
- The 8-year salary change of testers makes netizens envy it: you pay me one year's salary per month
- 工作中非常重要的测试策略,你大概没注意过吧
- How do Lenovo computers connect Bluetooth headsets?
- SQL injection for Web Security (2)
- I'll teach you to visit Amazon RDS for a year and build a MySQL cloud database (only 10 minutes, really fragrant)
- What is commercial endowment insurance? Is commercial endowment insurance safe?
猜你喜欢

2022 safety officer-a certificate examination questions and online simulation examination

About asp Net core uses a small detail of datetime date type parameter

Evolution of Himalayan self-developed gateway architecture

King combat power query renamed toolbox applet source code - with traffic main incentive advertisement

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

Synthetic watermelon game wechat applet source code / wechat game applet source code

gradle

How to compress video size while adding watermark with one click?

Datawhale 社区黑板报(第1期)

AIX存储管理之卷组的创建(一)
随机推荐
Global and Chinese market of avionics systems 2022-2028: Research Report on technology, participants, trends, market size and share
Exclusive delivery of secret script move disassembly (the first time)
【八大排序④】归并排序、不基于比较的排序(计数排序、基数排序、桶排序)
Advanced skills of testers: a guide to the application of unit test reports
Recommend an online interface mock tool usemock
How does schedulerx help users solve the problem of distributed task scheduling?
S32Kxxx bootloader之UDS bootloader
UDS bootloader of s32kxxx bootloader
Part 29 supplement (XXIX) basis of ECMAScript
Synthetic watermelon game wechat applet source code / wechat game applet source code
ACM tutorial - quick sort (regular + tail recursion + random benchmark)
笔者更加愿意将产业互联网看成是一个比消费互联网要丰富得多的概念
DTL dephossite | prediction method of dephosphorylation sites based on Transfer Learning
Xinniuniu blind box wechat applet source code_ Support flow realization, with complete material pictures
【八大排序②】选择排序(选择排序,堆排序)
Hcip day 14 (MPLS protocol)
[eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
How do Lenovo computers connect Bluetooth headsets?
站在新的角度来看待产业互联网,并且去寻求产业互联网的正确方式和方法
Global and Chinese markets for freight and logistics 2022-2028: Research Report on technology, participants, trends, market size and share