lmwtzw6u5l0 发表于 2017-12-11 20:50:22

SSM框架整合(注解)

1 <project  

2xmlns="http://maven.apache.org/POM/4.0.0"  
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  
5 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  
6   <modelVersion>4.0.0</modelVersion>
  
7   <parent>
  
8   <groupId>com.woo0nise</groupId>
  
9   <artifactId>woo0nise-parent</artifactId>
  
10   <version>0.0.1-SNAPSHOT</version>
  
11   </parent>
  
12   <groupId>SSM</groupId>
  
13   <artifactId>SSM</artifactId>
  
14   <version>0.0.1-SNAPSHOT</version>
  
15   <packaging>war</packaging>
  
16   <dependencies>
  
17   <!-- MySql -->
  
18 <dependency>
  
19 <groupId>mysql</groupId>
  
20 <artifactId>mysql-connector-java</artifactId>
  
21 </dependency>
  
22 <!-- 连接池 -->
  
23 <dependency>
  
24 <groupId>com.alibaba</groupId>
  
25 <artifactId>druid</artifactId>
  
26 </dependency>
  
27 <!-- Spring -->
  
28 <!-- spring核心包 -->
  
29 <dependency>
  
30 <groupId>org.springframework</groupId>
  
31 <artifactId>spring-core</artifactId>
  
32 </dependency>
  
33 <dependency>
  
34 <groupId>org.springframework</groupId>
  
35 <artifactId>spring-context</artifactId>
  
36 </dependency>
  
37 <dependency>
  
38 <groupId>org.springframework</groupId>
  
39 <artifactId>spring-beans</artifactId>
  
40 </dependency>
  
41 <dependency>
  
42 <groupId>org.springframework</groupId>
  
43 <artifactId>spring-web</artifactId>
  
44 </dependency>
  
45 <!-- Spring对JDBC的封装 -->
  
46 <dependency>
  
47 <groupId>org.springframework</groupId>
  
48 <artifactId>spring-jdbc</artifactId>
  
49 </dependency>
  
50 <dependency>
  
51 <groupId>org.springframework</groupId>
  
52 <artifactId>spring-aspects</artifactId>
  
53 </dependency>
  
54 <!-- 关系型数据库整合时需配置 如hibernate jpa等 -->
  
55 <dependency>
  
56 <groupId>org.springframework</groupId>
  
57 <artifactId>spring-orm</artifactId>
  
58 </dependency>
  
59 <!-- Spring MVC核心 -->
  
60 <dependency>
  
61 <groupId>org.springframework</groupId>
  
62 <artifactId>spring-webmvc</artifactId>
  
63 </dependency>
  
64   <!-- Jackson Json处理工具包(非必须) -->
  
65 <dependency>
  
66 <groupId>com.fasterxml.jackson.core</groupId>
  
67 <artifactId>jackson-databind</artifactId>
  
68 </dependency>
  
69 <!-- 单元测试 -->
  
70 <dependency>
  
71 <groupId>junit</groupId>
  
72 <artifactId>junit</artifactId>
  
73 <scope>test</scope>
  
74 </dependency>
  
75 <!-- 日志处理(非必须) -->
  
76 <dependency>
  
77 <groupId>org.slf4j</groupId>
  
78 <artifactId>slf4j-log4j12</artifactId>
  
79 </dependency>
  
80 <!-- Mybatis -->
  
81 <dependency>
  
82 <groupId>org.mybatis</groupId>
  
83 <artifactId>mybatis</artifactId>
  
84 </dependency>
  
85 <!-- mybatis的整合包 -->
  
86 <dependency>
  
87 <groupId>org.mybatis</groupId>
  
88 <artifactId>mybatis-spring</artifactId>
  
89 </dependency>
  
90 <!-- mybatis分页插件(非必须) -->
  
91 <dependency>
  
92 <groupId>com.github.pagehelper</groupId>
  
93 <artifactId>pagehelper</artifactId>
  
94 </dependency>
  
95 <dependency>
  
96 <groupId>com.github.miemiedev</groupId>
  
97 <artifactId>mybatis-paginator</artifactId>
  
98 </dependency>
  
99    <!-- JSP相关 -->
  
100 <dependency>
  
101 <groupId>jstl</groupId>
  
102 <artifactId>jstl</artifactId>
  
103 </dependency>
  
104 <dependency>
  
105 <groupId>javax.servlet</groupId>
  
106 <artifactId>servlet-api</artifactId>
  
107 <scope>provided</scope>
  
108 </dependency>
  
109 <dependency>
  
110 <groupId>javax.servlet</groupId>
  
111 <artifactId>jsp-api</artifactId>
  
112 <scope>provided</scope>
  
113 </dependency>
  
114   </dependencies>
  
115   <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  
116   <build>
  
117 <resources>
  
118            <resource>
  
119                <directory>src/main/java</directory>
  
120                <includes>
  
121                  <include>**/*.properties</include>
  
122                  <include>**/*.xml</include>
  
123                </includes>
  
124                <filtering>false</filtering>
  
125            </resource>
  
126      </resources>
  
127   </build>
  
128 </project>
页: [1]
查看完整版本: SSM框架整合(注解)