respond to the situation
For example, spring-session-data-redis
there is dependency ② in dependency ① spring-data-redis
, and the version is 1.7.10.RELEASE
, but because the version of dependency ② does not have a certain function, a new version of dependency ② needs to be used.
Dependencies put into pom
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
<version>1.3.1.RELEASE</version>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
</exclusion>
<exclusion>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>1.8.0.RELEASE</version>
</dependency>
Dependent selection steps
Find the dependency, and then select the version
to view the available range of the dependency.
You can see spring-data-redis
the range of use 1.7.10.RELEASE
to3.0.2