- <parent>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-parent
- </artifactId>
- <version>
- 2.0.2.RELEASE
- </version>
- </parent>
- <dependencies>
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-web
- </artifactId>
- </dependency>
- <!-- springBoot JPA 的起步依赖 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-data-jpa
- </artifactId>
- </dependency>
- <!-- MySQL 连接驱动 -->
- <dependency>
- <groupId>
- MySQL
- </groupId>
- <artifactId>
- MySQL-connector-java
- </artifactId>
- </dependency>
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-freemarker
- </artifactId>
- </dependency>
- <!--mybatis 起步依赖 -->
- <dependency>
- <groupId>
- org.mybatis.spring.boot
- </groupId>
- <artifactId>
- mybatis-spring-boot-starter
- </artifactId>
- <version>
- 1.1.1
- </version>
- </dependency>
- <!-- 测试的起步依赖 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-test
- </artifactId>
- <scope>
- test
- </scope>
- </dependency>
- <!-- 配置使用 redis 启动器 -->
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-data-Redis
- </artifactId>
- </dependency>
- <dependency>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-starter-data-Elasticsearch
- </artifactId>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <directory>
- src/main/java
- </directory>
- <includes>
- <include>
- **/*.properties
- </include>
- <include>
- **/*.xml
- </include>
- </includes>
- <filtering>
- false
- </filtering>
- </resource>
- <resource>
- <directory>
- src/main/resources
- </directory>
- <includes>
- <include>
- **/*.*
- </include>
- </includes>
- <filtering>
- false
- </filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>
- org.springframework.boot
- </groupId>
- <artifactId>
- spring-boot-maven-plugin
- </artifactId>
- </plugin>
- </plugins>
- </build>
来源: http://www.bubuko.com/infodetail-3240801.html