为什么我的jedis.setex(key.getBytes(),timeout,bytes)返回null
为什么我的报这个错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisDao' defined in class path resource [spring/spring-dao.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.seckill.dao.cache.RedisDao]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/dyuproject/protostuff/MapSchema$MessageFactory
找到原因了 redis执行 CONFIG SET protected-mode no