码迷,mamicode.com
首页 > 编程语言 > 详细

springboot的依赖

时间:2019-11-05 15:13:59      阅读:63      评论:0      收藏:0      [点我收藏+]

标签:mysq   red   pid   cto   ase   data   dep   --   resources   

 1 <parent>
 2 <groupId>org.springframework.boot</groupId>
 3 <artifactId>spring-boot-starter-parent</artifactId>
 4 <version>2.0.2.RELEASE</version>
 5 </parent>
 6 <dependencies>
 7 <dependency>
 8 <groupId>org.springframework.boot</groupId>
 9 <artifactId>spring-boot-starter-web</artifactId>
10 </dependency>
11 <!-- springBoot JPA的起步依赖 -->
12 <dependency>
13 <groupId>org.springframework.boot</groupId>
14 <artifactId>spring-boot-starter-data-jpa</artifactId>
15 </dependency>
16 
17 <dependency>
18 <groupId>mysql</groupId>
19 <artifactId>mysql-connector-java</artifactId>
20 </dependency>
21 <dependency>
22 <groupId>org.springframework.boot</groupId>
23 <artifactId>spring-boot-starter-freemarker</artifactId>
24 </dependency>
25 
26 <dependency>
27 <groupId>org.mybatis.spring.boot</groupId>
28 <artifactId>mybatis-spring-boot-starter</artifactId>
29 <version>1.1.1</version>
30 </dependency>
31 
32 <dependency>
33 <groupId>org.springframework.boot</groupId>
34 <artifactId>spring-boot-starter-test</artifactId>
35 <scope>test</scope>
36 </dependency>
37 
38 <dependency>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-data-redis</artifactId>
41 </dependency>
42 <dependency>
43 <groupId>org.springframework.boot</groupId>
44 <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
45 </dependency>
46 </dependencies>
47 <build>
48 <resources>
49 <resource>
50 <directory>src/main/java</directory>
51 <includes>
52 <include>**/*.properties</include>
53 <include>**/*.xml</include>
54 </includes>
55 <filtering>false</filtering>
56 </resource>
57 <resource>
58 <directory>src/main/resources</directory>
59 <includes>
60 <include>**/*.*</include>
61 </includes>
62 <filtering>false</filtering>
63 </resource>
64 </resources>
65 <plugins>
66 <plugin>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-maven-plugin</artifactId>
69 </plugin>
70 </plugins>
71 </build>

注意版本问题!

springboot的依赖

标签:mysq   red   pid   cto   ase   data   dep   --   resources   

原文地址:https://www.cnblogs.com/wufeng6/p/11798323.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!