版权声明:转载请注明出处 https://blog.csdn.net/baixiaozhe/article/details/82841399
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<relativePath />
</parent>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
会报错:
Caused by: java.lang.ClassNotFoundException: org.springframework.dao.support.PersistenceExceptionTranslator
解决办法:把spring-boot-starter-parent 改成2.0.2就可以了,不行的话自己也可以试试其他版本