spring整合springMVC、mybatis、shiro

spring整合springMVC、mybatis、shiro

spring整合springMVC、mybatis、shiro

1 <properties> 2 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 3 <maven.compiler.source>1.7</maven.compiler.source> 4 <maven.compiler.target>1.7</maven.compiler.target> 5 <!--spring版本号--> 6 <spring.version>4.2.4.RELEASE</spring.version> 7 <!-- mybatis版本号 --> 8 <mybatis.version>3.4.1</mybatis.version> 9 <!-- log4j日志文件管理包版本 --> 10 <log4j.version>1.2.17</log4j.version> 11 <!-- jackson版本号 --> 12 <jackson.version>2.8.3</jackson.version> 13 <!--servlet 版本号--> 14 <servlet.version>4.0.1</servlet.version> 15 <!--spring-mybatis版本号--> 16 <mybatis.spring.version>1.3.0</mybatis.spring.version> 17 </properties> 18 19 <dependencies> 20 <dependency> 21 <groupId>junit</groupId> 22 <artifactId>junit</artifactId> 23 <version>4.11</version> 24 <scope>test</scope> 25 </dependency> 26 <!--servlet包--> 27 <dependency> 28 <groupId>javax.servlet</groupId> 29 <artifactId>javax.servlet-api</artifactId> 30 <version>${servlet.version}</version> 31 </dependency> 32 <!-- spring核心包 --> 33 <dependency> 34 <groupId>org.springframework</groupId> 35 <artifactId>spring-core</artifactId> 36 <version>${spring.version}</version> 37 </dependency> 38 39 <dependency> 40 <groupId>org.springframework</groupId> 41 <artifactId>spring-web</artifactId> 42 <version>${spring.version}</version> 43 </dependency> 44 <dependency> 45 <groupId>org.springframework</groupId> 46 <artifactId>spring-oxm</artifactId> 47 <version>${spring.version}</version> 48 </dependency> 49 <dependency> 50 <groupId>org.springframework</groupId> 51 <artifactId>spring-tx</artifactId> 52 <version>${spring.version}</version> 53 </dependency> 54 55 <dependency> 56 <groupId>org.springframework</groupId> 57 <artifactId>spring-jdbc</artifactId> 58 <version>${spring.version}</version> 59 </dependency> 60 61 <dependency> 62 <groupId>org.springframework</groupId> 63 <artifactId>spring-webmvc</artifactId> 64 <version>${spring.version}</version> 65 </dependency> 66 <dependency> 67 <groupId>org.springframework</groupId> 68 <artifactId>spring-aop</artifactId> 69 <version>${spring.version}</version> 70 </dependency> 71 72 <dependency> 73 <groupId>org.springframework</groupId> 74 <artifactId>spring-context-support</artifactId> 75 <version>${spring.version}</version> 76 </dependency> 77 78 <dependency> 79 <groupId>org.springframework</groupId> 80 <artifactId>spring-test</artifactId> 81 <version>${spring.version}</version> 82 </dependency> 83 <!-- mybatis核心包 --> 84 <dependency> 85 <groupId>org.mybatis</groupId> 86 <artifactId>mybatis</artifactId> 87 <version>${mybatis.version}</version> 88 </dependency> 89 <!-- mybatis/spring包 --> 90 <dependency> 91 <groupId>org.mybatis</groupId> 92 <artifactId>mybatis-spring</artifactId> 93 <version>${mybatis.spring.version}</version> 94 </dependency> 95 <!-- 导入java ee jar 包 --> 96 <dependency> 97 <groupId>javax</groupId> 98 <artifactId>javaee-api</artifactId> 99 <version>7.0</version> 100 </dependency> 101 102 <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 database connection pool--> 103 <dependency> 104 <groupId>commons-dbcp</groupId> 105 <artifactId>commons-dbcp</artifactId> 106 <version>1.4</version> 107 </dependency> 108 <!-- JSTL标签类 --> 109 <dependency> 110 <groupId>jstl</groupId> 111 <artifactId>jstl</artifactId> 112 <version>1.2</version> 113 </dependency> 114 <!-- 日志文件管理包 --> 115 <dependency> 116 <groupId>log4j</groupId> 117 <artifactId>log4j</artifactId> 118 <version>${log4j.version}</version> 119 </dependency> 120 <!--常用解析json包--> 121 <dependency> 122 <groupId>com.alibaba</groupId> 123 <artifactId>fastjson</artifactId> 124 <version>1.2.17</version> 125 </dependency> 126 127 <!-- 上传组件包 --> 128 <dependency> 129 <groupId>commons-fileupload</groupId> 130 <artifactId>commons-fileupload</artifactId> 131 <version>1.3.1</version> 132 </dependency> 133 <dependency> 134 <groupId>commons-io</groupId> 135 <artifactId>commons-io</artifactId> 136 <version>2.5</version> 137 </dependency> 138 <dependency> 139 <groupId>commons-codec</groupId> 140 <artifactId>commons-codec</artifactId> 141 <version>1.10</version> 142 </dependency> 143 <!--aop相关包--> 144 <dependency> 145 <groupId>org.aspectj</groupId> 146 <artifactId>aspectjweaver</artifactId> 147 <version>1.6.12</version> 148 </dependency> 149 <!-- redis 开始 --> 150 <dependency> 151 <groupId>redis.clients</groupId> 152 <artifactId>jedis</artifactId> 153 <version>2.8.0</version> 154 </dependency> 155 156 <dependency> 157 <groupId>org.springframework.data</groupId> 158 <artifactId>spring-data-redis</artifactId> 159 <version>1.6.2.RELEASE</version> 160 </dependency> 161 <dependency> 162 <groupId>org.mybatis</groupId> 163 <artifactId>mybatis-ehcache</artifactId> 164 <version>1.0.0</version> 165 </dependency> 166 <!-- redis 结束--> 167 <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> 168 <dependency> 169 <groupId>mysql</groupId> 170 <artifactId>mysql-connector-java</artifactId> 171 <version>5.1.10</version> 172 </dependency> 173 174 <dependency> 175 <groupId>org.apache.shiro</groupId> 176 <artifactId>shiro-core</artifactId> 177 <version>1.4.0</version> 178 </dependency> 179 <dependency> 180 <groupId>org.apache.shiro</groupId> 181 <artifactId>shiro-ehcache</artifactId> 182 <version>1.4.0</version> 183 </dependency> 184 <dependency> 185 <groupId>org.apache.shiro</groupId> 186 <artifactId>shiro-spring</artifactId> 187 <version>1.4.0</version> 188 </dependency> 189 <dependency> 190 <groupId>org.apache.shiro</groupId> 191 <artifactId>shiro-web</artifactId> 192 <version>1.4.0</version> 193 </dependency> 194 </dependencies>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzxwpd.html