redis配置不成功,报错java.lang.ClassNotFoundException: redis.clients.jedis.JedisPoolConfig
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPool] for bean with name 'jedisPool' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPoolConfig] for bean with name 'jedisPoolConfig' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPoolConfig
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'advisor' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/springmvc.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring.xml]: Cannot resolve reference to bean 'realm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPool] for bean with name 'jedisPool' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring.xml]: Cannot resolve reference to bean 'realm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPool] for bean with name 'jedisPool' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPool] for bean with name 'jedisPool' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPool] for bean with name 'jedisPool' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.JedisPool
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1397)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1344)
... 68 more
Related cause:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [redis.clients.jedis.JedisPoolConfig] for bean with name 'jedisPoolConfig' defined in URL [file:/D:/practice/shirostudy/classes/artifacts/shiro_web_war_exploded2/WEB-INF/classes/spring/spring-redis.xml]; nested exception is java.lang.ClassNotFoundException: redis.clients.jedis.JedisPoolConfig
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:597)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1445)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:445)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:415)
at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:220)
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:73)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:988)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:687)
Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.JedisPoolConfig
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1397)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1344)
... 68 more