How to configure these two attributes in the new version of spring-boot-starter-data-redis

redis:
      database: 4
      host: localhost
      password:
      port: 6379
      jedis:
        pool:
            max-idle: 8
            min-idle: 0
            max-active: 200
            max-wait: { seconds: 10, nanos:0 }
      timeout: { seconds: 120, nanos:0 }

the new version of the configuration, max-wait and timeout are no longer long types, but have become Duration types. This thing is an object. How can it be configured in yaml?

Mar.14,2021

spring.redis.jedis.pool.max-wait=-1ms

spring.redis.timeout=2000ms
Menu