问答详情
源自:2-1 redis后端缓存优化编码

为什么我的jedis.setex(key.getBytes(),timeout,bytes)返回null

为什么我的jedis.setex(key.getBytes(),timeout,bytes)返回null

提问者:weibo_邓小浪哈哈_03335006 2016-06-10 23:51

个回答

  • 慕慕9697049
    2016-08-13 09:54:16

    为什么我的报这个错

  • 慕慕9697049
    2016-08-13 09:53:19

    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

  • weibo_邓小浪哈哈_03335006
    2016-06-11 00:20:26

    找到原因了 redis执行 CONFIG SET protected-mode no