时间:2021-07-01 10:21:17 帮助过:4人阅读
1. pom.xml 配置
1.1. 版本属性信息配置
1 <properties> 2 <!-- base setting --> 3 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 4 <project.build.locales>zh_CN</project.build.locales> 5 <project.build.jdk>1.8</project.build.jdk> 6 7 <!-- plugin setting --> 8 <mybatis.generator.generatorConfig.xml>${basedir}/src/test/java/generatorConfig.xml</mybatis.generator.generatorConfig.xml> 9 <mybatis.generator.generatorConfig.properties>file:///${basedir}/src/test/java/generatorConfig.properties</mybatis.generator.generatorConfig.properties> 10 11 <!-- plugin versions --> 12 <plugin.mybatis.generator>1.3.1</plugin.mybatis.generator> 13 <plugin.maven-compiler>3.1</plugin.maven-compiler> 14 <plugin.maven-surefire>2.18.1</plugin.maven-surefire> 15 <skipTests>true</skipTests> 16 17 <!-- lib versions --> 18 <junit.version>4.11</junit.version> 19 <spring.version>4.0.2.RELEASE</spring.version> 20 <mybatis.version>3.2.2</mybatis.version> 21 <mybatis.spring.version>1.2.2</mybatis.spring.version> 22 <mysql.connector.version>5.1.6</mysql.connector.version> 23 <slf4j.version>1.6.6</slf4j.version> 24 <log4j.version>1.2.12</log4j.version> 25 <httpclient.version>4.1.2</httpclient.version> 26 <jackson.version>1.9.13</jackson.version> 27 <druid.version>1.0.5</druid.version> 28 <jstl.version>1.2</jstl.version> 29 <google.collections.version>1.0</google.collections.version> 30 <cglib.version>3.1</cglib.version> 31 <shiro.version>1.2.3</shiro.version> 32 <commons.fileupload.version>1.3.1</commons.fileupload.version> 33 <commons.codec.version>1.9</commons.codec.version> 34 <commons.net.version>3.3</commons.net.version> 35 <aspectj.version>1.6.12</aspectj.version> 36 <netty.version>4.0.18.Final</netty.version> 37 <hibernate.validator.version>5.1.1.Final</hibernate.validator.version> 38 </properties>
1.2. 依赖库信息配置
1 <dependencies> 2 <!-- springframe start --> 3 <dependency> 4 <groupId>org.springframework</groupId> 5 <artifactId>spring-core</artifactId> 6 <version>${spring.version}</version> 7 </dependency> 8 9 <dependency> 10 <groupId>org.springframework</groupId> 11 <artifactId>spring-web</artifactId> 12 <version>${spring.version}</version> 13 </dependency> 14 15 <dependency> 16 <groupId>org.springframework</groupId> 17 <artifactId>spring-oxm</artifactId> 18 <version>${spring.version}</version> 19 </dependency> 20 21 <dependency> 22 <groupId>org.springframework</groupId> 23 <artifactId>spring-tx</artifactId> 24 <version>${spring.version}</version> 25 </dependency> 26 27 <dependency> 28 <groupId>org.springframework</groupId> 29 <artifactId>spring-jdbc</artifactId> 30 <version>${spring.version}</version> 31 </dependency> 32 33 <dependency> 34 <groupId>org.springframework</groupId> 35 <artifactId>spring-webmvc</artifactId> 36 <version>${spring.version}</version> 37 </dependency> 38 39 <dependency> 40 <groupId>org.springframework</groupId> 41 <artifactId>spring-aop</artifactId> 42 <version>${spring.version}</version> 43 </dependency> 44 45 <dependency> 46 <groupId>org.springframework</groupId> 47 <artifactId>spring-context-support</artifactId> 48 <version>${spring.version}</version> 49 </dependency> 50 51 <dependency> 52 <groupId>org.springframework</groupId> 53 <artifactId>spring-test</artifactId> 54 <version>${spring.version}</version> 55 </dependency> 56 <!-- springframe end --> 57 58 <!-- shiro --> 59 <dependency> 60 <groupId>org.apache.shiro</groupId> 61 <artifactId>shiro-spring</artifactId> 62 <version>${shiro.version}</version> 63 </dependency> 64 <dependency> 65 <groupId>org.apache.shiro</groupId> 66 <artifactId>shiro-ehcache</artifactId> 67 <version>${shiro.version}</version> 68 </dependency> 69 <dependency> 70 <groupId>org.apache.shiro</groupId> 71 <artifactId>shiro-core</artifactId> 72 <version>${shiro.version}</version> 73 </dependency> 74 <dependency> 75 <groupId>org.apache.shiro</groupId> 76 <artifactId>shiro-web</artifactId> 77 <version>${shiro.version}</version> 78 </dependency> 79 <dependency> 80 <groupId>org.apache.shiro</groupId> 81 <artifactId>shiro-quartz</artifactId> 82 <version>${shiro.version}</version> 83 </dependency> 84 85 <!-- mybatis start--> 86 <dependency> 87 <groupId>org.mybatis</groupId> 88 <artifactId>mybatis</artifactId> 89 <version>${mybatis.version}</version> 90 </dependency> 91 92 <dependency> 93 <groupId>org.mybatis</groupId> 94 <artifactId>mybatis-spring</artifactId> 95 <version>${mybatis.spring.version}</version> 96 </dependency> 97 <!--mybatis end--> 98 99 <!-- mysql-connector --> 100 <dependency> 101 <groupId>mysql</groupId> 102 <artifactId>mysql-connector-java</artifactId> 103 <version>${mysql.connector.version}</version> 104 </dependency> 105 106 <!-- DruidDataSource --> 107 <dependency> 108 <groupId>com.alibaba</groupId> 109 <artifactId>druid</artifactId> 110 <version>${druid.version}</version> 111 </dependency> 112 113 <!-- jackson --> 114 <dependency> 115 <groupId>org.codehaus.jackson</groupId> 116 <artifactId>jackson-mapper-asl</artifactId> 117 <version