#SimpleKey

spring使用Redis自定义前缀后缀名(去掉SimpleKey []+自定义)

1、定义类实现KeyGenerator接口MyKeyGeneratorpackagecom.wbg.springRedis.service.impl;importorg.springframework.cache.interceptor.KeyGenerator;importorg.springframework.st...

org.springframework.cache.interceptor.SimpleKey cannot be cast to java.lang.String

springboot整合redis时,使用@Cacheable注解,如果方法的key参数为空,就会报org.springframework.cache.interceptor.SimpleKeycannotbecasttojava.lang.String的错误。♛1错误信息org.springframework.cac...