构建时候出错运行时候报了错:

Failed to instantiate [org.springframework.data.redis.core.StringRedisTemplate]: Factory methodstringRedisTemplatethrew exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/data/mapping/model/EntityInstantiators

 后面发现是改了低版本springbootstarterparent,导致项目无法实例stringRedisTemplate,把版本换高一点就行了。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注