Spring @Cacheable 使用过程中提示的「解决方案」
org.springframework.data.redis.serializer.SerializationException: Cannot serialize
Caused by: java.io.InvalidClassException: cn.aigcsst.domain.PictureClick; class invalid for deserialization
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
开启 Cache
package hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
@SpringBootApplication
@EnableCaching
publ