参考文章:https://blog.csdn.net/weixin_42184707/article/details/80361464  

        其中遇到了问题,第一,redis的xml配置文件中的,头部地址资源符拉红线,在开发工具中修改配置加入即可,idea的配置方法:  https://www.cnblogs.com/ttflove/p/6341469.html

        第二:启动报spring 中的 bean 找不到的错误,出现这个错误的原因千奇百怪,最后确定是  我spring的版本太低了,引用的

  spring-data-redis 版本较高,改为 1.5.2的版本后,错误解决。下面贴出redis的相关依赖
	<!--redis相关 -->
		<dependency>
			<groupId>org.springframework.data</groupId>
			<artifactId>spring-data-redis</artifactId>
			<version>1.5.2.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>redis.clients</groupId>
			<artifactId>jedis</artifactId>
			<version>2.9.0</version>
		</dependency>

  

   

相关文章:

  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-11-17
  • 2021-08-28
  • 2021-06-12
相关资源
相似解决方案