spring-boot-starter-data-redis与spring-boot-starter-redis两个包的区别

spring-boot-starter-data-redis:

xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0modelVersion>
    <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-startersartifactId>
        <version>1.4.7.RELEASEversion>
    parent>
    <artifactId>spring-boot-starter-data-redisartifactId>
    <name>Spring Boot Data Redis Startername>
    <description>Starter for using Redis key-value data store with Spring Data Redis and
        the Jedis clientdescription>
    <url>http://projects.spring.io/spring-boot/url>
    <organization>
        <name>Pivotal Software, Inc.name>
        <url>http://www.spring.iourl>
    organization>
    <properties>
        <main.basedir>${basedir}/../..main.basedir>
    properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starterartifactId>
        dependency>
        <dependency>
            <groupId>org.springframework.datagroupId>
            <artifactId>spring-data-redisartifactId>
        dependency>
        <dependency>
            <groupId>redis.clientsgroupId>
            <artifactId>jedisartifactId>
        dependency>
    dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.basepom.mavengroupId>
                <artifactId>duplicate-finder-maven-pluginartifactId>
                <executions>
                    <execution>
                        <id>duplicate-dependenciesid>
                        <phase>validatephase>
                        <goals>
                            <goal>checkgoal>
                        goals>
                        <configuration>
                            <ignoredResourcePatterns>
                                <ignoredResourcePattern>changelog.txtignoredResourcePattern>
                            ignoredResourcePatterns>
                        configuration>
                    execution>
                executions>
            plugin>
        plugins>
    build>
project>

spring-boot-starter-redis:

xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0modelVersion>
    <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-startersartifactId>
        <version>1.4.7.RELEASEversion>
    parent>
    <artifactId>spring-boot-starter-redisartifactId>
    <name>spring-boot-starter-redis (DEPRECATED)name>
    <description>Starter for using Redis key-value data store with Spring Data Redis and
        the Jedis client. Deprecated as of 1.4 in favor of spring-boot-starter-data-redisdescription>
    <url>http://projects.spring.io/spring-boot/url>
    <organization>
        <name>Pivotal Software, Inc.name>
        <url>http://www.spring.iourl>
    organization>
    <properties>
        <main.basedir>${basedir}/../..main.basedir>
    properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starterartifactId>
        dependency>
        <dependency>
            <groupId>org.springframework.datagroupId>
            <artifactId>spring-data-redisartifactId>
        dependency>
        <dependency>
            <groupId>redis.clientsgroupId>
            <artifactId>jedisartifactId>
        dependency>
    dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.basepom.mavengroupId>
                <artifactId>duplicate-finder-maven-pluginartifactId>
                <executions>
                    <execution>
                        <id>duplicate-dependenciesid>
                        <phase>validatephase>
                        <goals>
                            <goal>checkgoal>
                        goals>
                        <configuration>
                            <ignoredResourcePatterns>
                                <ignoredResourcePattern>changelog.txtignoredResourcePattern>
                            ignoredResourcePatterns>
                        configuration>
                    execution>
                executions>
            plugin>
        plugins>
    build>
project>

可以看出两者的POM引入的包基本一致,都是基于Jedis的,所以没区别。

==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==

你可能感兴趣的:(spring-boot-starter-data-redis与spring-boot-starter-redis两个包的区别)