更新版本后启动报错,org.springframework.boot.autoconfigure.data.redis.RedisProperties$Ssl

Blade 未结 2 119
xierui118
xierui118 剑者 2024-04-01 11:20

一、该问题的重现步骤是什么?

1. 更新4.0版本后,修改了nacos中redis配置

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。

Description:


Failed to bind properties under 'spring.data.redis.ssl' to org.springframework.boot.autoconfigure.data.redis.RedisProperties$Ssl:


    Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.Boolean] to type [org.springframework.boot.autoconfigure.data.redis.RedisProperties$Ssl]


Action:


Update your application's configuration

五、若有更多详细信息,请在下面提供。

2条回答
  • 2024-04-01 11:25
    spring:
      data:
        redis:
          ssl:
            enabled: true
            key-store: classpath:keystore.jks
            key-store-password: yourpassword
            trust-store: classpath:truststore.jks
            trust-store-password: yourpassword
            protocol: TLS


    0 讨论(0)
  • 2024-04-01 11:29

    已解决

    0 讨论(0)
提交回复