1.command timed out
解决方法:将application.properties中 redis配置的超时时间增大
spring.redis.timeout=200
2.下面的这种情况
原因是实体类没有实现序列化
解决方法:在后面加上implements Serializable
3.Error resolving template “findById”, template might not exist or might not be accessible
原因:由于该地址返回的是json数据,我在controller类前加的@Controller
解决方法:将@Controller改为@RestController(也相当于改为@Responsebody和@Controller合并在一起)就可以解决