|
15 | 15 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
16 | 16 | </properties>
|
17 | 17 |
|
18 |
| - <parent><!-- spring boot通用配置 --> |
| 18 | + <parent><!-- spring boot父级依赖, 定义了常用包的version --> |
19 | 19 | <groupId>org.springframework.boot</groupId>
|
20 | 20 | <artifactId>spring-boot-starter-parent</artifactId>
|
21 |
| - <version>1.2.7.RELEASE</version> |
| 21 | + <version>1.4.0.RELEASE</version> |
22 | 22 | </parent>
|
23 | 23 |
|
24 | 24 | <dependencies>
|
25 |
| - |
26 |
| - <dependency><!-- spring web通用配置 --> |
| 25 | + <dependency><!-- 核心starter, 包含自动配置/日志/yaml配置文件支持等 --> |
| 26 | + <groupId>org.springframework.boot</groupId> |
| 27 | + <artifactId>spring-boot-starter</artifactId> |
| 28 | + </dependency> |
| 29 | + <dependency><!-- web项目开发支持, 包含tomcat和springmvc等 --> |
27 | 30 | <groupId>org.springframework.boot</groupId>
|
28 | 31 | <artifactId>spring-boot-starter-web</artifactId>
|
29 | 32 | </dependency>
|
30 |
| - |
31 | 33 | <dependency><!-- 用于内嵌tomcat解析jsp -->
|
32 | 34 | <groupId>org.apache.tomcat.embed</groupId>
|
33 | 35 | <artifactId>tomcat-embed-jasper</artifactId>
|
34 | 36 | </dependency>
|
35 |
| - |
36 | 37 | <dependency><!-- jsp中使用jstl -->
|
37 | 38 | <groupId>javax.servlet</groupId>
|
38 | 39 | <artifactId>jstl</artifactId>
|
39 | 40 | </dependency>
|
40 |
| - |
41 | 41 | <dependency><!-- mysql驱动 -->
|
42 | 42 | <groupId>mysql</groupId>
|
43 | 43 | <artifactId>mysql-connector-java</artifactId>
|
44 | 44 | </dependency>
|
45 |
| - |
46 | 45 | <dependency><!-- tomcat 连接池-->
|
47 | 46 | <groupId>org.apache.tomcat</groupId>
|
48 | 47 | <artifactId>tomcat-jdbc</artifactId>
|
49 | 48 | </dependency>
|
50 |
| - |
51 | 49 | <dependency><!-- 使用spring声明式等 -->
|
52 | 50 | <groupId>org.springframework</groupId>
|
53 | 51 | <artifactId>spring-jdbc</artifactId>
|
54 | 52 | </dependency>
|
55 |
| - |
56 | 53 | <dependency><!-- mybatis -->
|
57 | 54 | <groupId>org.mybatis</groupId>
|
58 | 55 | <artifactId>mybatis</artifactId>
|
59 | 56 | <version>3.3.0</version>
|
60 | 57 | </dependency>
|
61 |
| - |
62 | 58 | <dependency><!-- spring操作mybatis插件 -->
|
63 | 59 | <groupId>org.mybatis</groupId>
|
64 | 60 | <artifactId>mybatis-spring</artifactId>
|
65 | 61 | <version>1.2.3</version>
|
66 | 62 | </dependency>
|
67 |
| - |
68 |
| - |
| 63 | + |
69 | 64 | <dependency><!-- 用于spring测试 -->
|
70 | 65 | <groupId>org.springframework</groupId>
|
71 | 66 | <artifactId>spring-test</artifactId>
|
72 | 67 | <scope>test</scope>
|
73 | 68 | </dependency>
|
74 |
| - |
75 | 69 | <dependency><!-- 用于单元测试 -->
|
76 | 70 | <groupId>junit</groupId>
|
77 | 71 | <artifactId>junit</artifactId>
|
78 | 72 | <scope>test</scope>
|
79 | 73 | </dependency>
|
80 |
| - |
81 | 74 | </dependencies>
|
82 | 75 |
|
83 |
| - |
84 | 76 | <build>
|
85 |
| - |
86 | 77 | <plugins>
|
87 | 78 | <plugin>
|
88 | 79 | <groupId>org.springframework.boot</groupId>
|
|
104 | 95 | </configuration>
|
105 | 96 | </plugin>
|
106 | 97 | </plugins>
|
107 |
| - |
108 | 98 | </build>
|
109 | 99 |
|
110 | 100 | </project>
|
0 commit comments