版权声明: https://blog.csdn.net/qq_32157851/article/details/84937407
今天遇到一个奇怪的问题,在pom.xml 中导入下面的jar包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
然后使用@EnableRedisHttpSession 这个注解报错,但是本地已经有了这个包,还是提示这个文件不可读或者不是zip文件啥的,
最后将项目中所提示的路径下的目录删掉,然后选中项目右击,选择maven ----》 update project 。执行完以后再去路径下看看有没有新生成的目录和 jar包,有的话就成功了。