原因:org.springframework.beans.factory.UnsatisfiedDependencyException:クラスパスリソースで定義された「stringRedisTemplate」という名前のビーンをエラー作成 [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: 'stringRedisTemplate'パラメータ0で表現された未満足の依存関係; ネスト例外は org.springframework.beans.factory.BeanCreationException: クラスパスリソースで定義された 'redisConnectionFactory' という名前の bean を created エラーです [org/springframework/boot/autoconfigure/data/redis/LettuceConnectionConfiguration.class]: ファクトリーメソッドによる豆のインスタンス化に失敗; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.redis.connection.lettuce.Lettuce.Lettuce]: Factoryメソッド「redisConnectionFactory」は例外を投げました; ネストされた例外はjava.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfig
設定で「org.springframework.data.redis.core.RedisTemplate」型のビーンを定義することを検討してください。 注入点には以下の注釈があります: - @org.springframework.beans.factory.annotation.Autowired(required=true)
例外はSpringBootにRedisTemplateインスタンスを注入することで解決されます https://www.itsvse.com/thread-7224-1-1.html(出典:Architect_Programmer)