caused By:org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Redis.clients.jedis.JedisCluster]: Constructor threw exception; Nested exception is Java.lang.NumberFormatException:For input string: "[email protected]"
At Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:163)
At Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:122)
At Org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (Constructorresolver.java : 267)
... More
caused By:java.lang.NumberFormatException:For input string: "[email protected]"
At Java.lang.NumberFormatException.forInputString (numberformatexception.java:65)
Workaround: Since the version of Redis cluster is 4.1, the Jedis version will be changed to 2.9 in Maven Pom.xml,
<Dependency> <groupId>Redis.clients</groupId> <Artifactid>Jedis</Artifactid> <version>2.9.0</version> </Dependency>
Using Redis clusters in a MAVEN project error: Java.lang.NumberFormatException:For input string: "[email protected] "