: Error creating bean with name 'OrdersIteamController' defined in file [C:\Users\Administrator\Desktop\book\web\target\classes\com\siner\web\]: Instantiation of bean failed; nested exception is : Failed to instantiate []: Constructor threw exception; nested exception is : Could not get a resource from the pool
at (:1320) ~[spring-beans-5.2.:5.2.]
at (:1214) ~[spring-beans-5.2.:5.2.]
at (:557) ~[spring-beans-5.2.:5.2.]
at (:517) ~[spring-beans-5.2.:5.2.]
at $doGetBean$0(:323) ~[spring-beans-5.2.:5.2.]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
如图,我使用Jedis抓不到连接池里的jedis链接,也就是说连接池中没有可用的jedis。
产生这种问题原因我大概发现了2种:
1、properties文件里jedis的配置有问题,要么是写错了,要么是没设置好端口
2、你没有打开redis 服务器,就是那个CMD小黑框。
搞好后,启动IDEA,芜湖 起飞,完美启动