【学习之路】spring boot 整合redis 报错

目录

  • 一. 踩坑原因
  • 二. 踩坑之前
  • 二. 解决方法
      • PS

一. 踩坑原因

报错内容:

2022-04-27 17:34:24.004  WARN 2159230 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisController' defined in URL [jar:file:/usr/local/sbin/demo-web-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/com/dx/demoweb/controller/RedisController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is 

你可能感兴趣的:(学习之路,spring,boot,redis)