报错java.lang.IllegalStateException: Failed to load ApplicationContext;
和
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jedisPool' defined in class path resource [spring-redis.xml]: Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
自己试了很久最后发现jedisPool在spring中配置一定要配置timeout,不写就会报错。理论上来说应该有默认值(2000)但是不知为啥报错,反正报错那就补上呗。具体代码看下面(redis.properties不给出)