Redis Cache Manager Исключение - PullRequest
       3

Redis Cache Manager Исключение

0 голосов
/ 19 декабря 2018

Получение этого исключения (см. Ниже) в рамках обновления Spring Boot:

no suitable constructor found for RedisCacheManager(org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object>)
    constructor org.springframework.data.redis.cache.RedisCacheManager.RedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter,org.springframework.data.redis.cache.RedisCacheConfiguration,java.lang.String...) is not applicable
      (argument mismatch; org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object> cannot be converted to org.springframework.data.redis.cache.RedisCacheWriter)
    constructor org.springframework.data.redis.cache.RedisCacheManager.RedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter,org.springframework.data.redis.cache.RedisCacheConfiguration,boolean,java.lang.String...) is not applicable
      (argument mismatch; org.springframework.data.redis.core.RedisTemplate<java.lang.String,java.lang.Object> cannot be converted to org.springframework.data.redis.cache.RedisCacheWriter)

Нужно ли добавить еще одну версию для Redis PFB, pom.xml содержит подробности для управления зависимостями с помощью родительского загрузчика Spring Boot

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.1.Release</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>
<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.9</java.version>
        <springfox.version>2.6.0</springfox.version>
    </properties>
<dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-redis</artifactId>

        </dependency>
<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Finchley.SR2</version>
                <!-- <version>Brixton.SR5</version> -->
                <type>pom</type>
                <scope>import</scope>
            </dependency>
                    </dependencies>
    </dependencyManagement>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...