@Cacheable(value="redisCache")
List selectContentByCategoryId(@Param("cid") Long categoryId);
严重: Servlet.service() for servlet [taotao-facadeweb] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Null key returned for cache operation (maybe you are using named params on classes without debug info?) CacheableOperation[public abstract java.util.List com.taotao.mapper.TbContentMapper.selectContentByCategoryId(java.lang.Long)] caches=[redisCache] | key='#categoryId' | keyGenerator='' | cacheManager='' | cacheResolver='' | condition='' | unless=''] with root cause
java.lang.IllegalArgumentException: Null key returned for cache operation (maybe you are using named params on classes without debug info?) CacheableOperation[public abstract java.util.List com.taotao.mapper.TbContentMapper.selectContentByCategoryId(java.lang.Long)] caches=[redisCache] | key='#categoryId' | keyGenerator='' | cacheManager='' | cacheResolver='' | condition='' | unless=''
at org.springframework.cache.interceptor.CacheAspectSupport.generateKey(CacheAspectSupport.java:493)