|
@@ -0,0 +1,253 @@
|
|
|
|
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
+ <groupId>com.demo</groupId>
|
|
|
|
+ <artifactId>aop</artifactId>
|
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
|
+ <packaging>war</packaging>
|
|
|
|
+ <name>aop Maven Webapp</name>
|
|
|
|
+<!--此处统一配置版本信息-->
|
|
|
|
+ <properties>
|
|
|
|
+ <!-- spring版本 -->
|
|
|
|
+ <springVersion>4.3.1.RELEASE</springVersion>
|
|
|
|
+ <!-- mybatis版本 -->
|
|
|
|
+ <mybatis.version>3.2.6</mybatis.version>
|
|
|
|
+ <!--<mysqlVersion>6.0.3</mysqlVersion>-->
|
|
|
|
+ <mysqlVersion>5.1.38</mysqlVersion>
|
|
|
|
+
|
|
|
|
+ <lombokVersion>1.16.10</lombokVersion>
|
|
|
|
+ <log4jVersion>1.2.17</log4jVersion>
|
|
|
|
+ <slf4jVersion>1.7.7</slf4jVersion>
|
|
|
|
+ <fileuploadVersion>1.3.1</fileuploadVersion>
|
|
|
|
+ <jstlVersion>1.2</jstlVersion>
|
|
|
|
+ <!--<taglibVersion>1.1.2</taglibVersion>-->
|
|
|
|
+ <!--<servletVersion>3.0-alpha-1</servletVersion>-->
|
|
|
|
+
|
|
|
|
+ <jackson.version>2.8.5</jackson.version>
|
|
|
|
+
|
|
|
|
+ </properties>
|
|
|
|
+
|
|
|
|
+ <dependencies>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>junit</groupId>
|
|
|
|
+ <artifactId>junit</artifactId>
|
|
|
|
+ <version>3.8.1</version>
|
|
|
|
+ <scope>test</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- spring-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
+ <artifactId>spring-beans</artifactId>
|
|
|
|
+ <version>${springVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
+ <artifactId>spring-core</artifactId>
|
|
|
|
+ <version>${springVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
+ <artifactId>spring-context</artifactId>
|
|
|
|
+ <version>${springVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
+ <artifactId>spring-orm</artifactId>
|
|
|
|
+ <version>${springVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- spring web + spring MVC-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
+ <artifactId>spring-web</artifactId>
|
|
|
|
+ <version>${springVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
+ <artifactId>spring-webmvc</artifactId>
|
|
|
|
+ <version>${springVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- mybatis核心包 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.mybatis</groupId>
|
|
|
|
+ <artifactId>mybatis</artifactId>
|
|
|
|
+ <version>3.0.5</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- mybatis + spring -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.mybatis</groupId>
|
|
|
|
+ <artifactId>mybatis-spring</artifactId>
|
|
|
|
+ <version>1.0.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- DataBase数据库连接 mysql包-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>mysql</groupId>
|
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
|
+ <version>${mysqlVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>commons-dbcp</groupId>
|
|
|
|
+ <artifactId>commons-dbcp</artifactId>
|
|
|
|
+ <version>1.2.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- log4j配置, 视情况添加-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>log4j</groupId>
|
|
|
|
+ <artifactId>log4j</artifactId>
|
|
|
|
+ <version>${log4jVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--<dependency>-->
|
|
|
|
+ <!--<groupId>com.alibaba</groupId>-->
|
|
|
|
+ <!--<artifactId>fastjson</artifactId>-->
|
|
|
|
+ <!--<version>1.1.41</version>-->
|
|
|
|
+ <!--</dependency>-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
|
+ <artifactId>slf4j-api</artifactId>
|
|
|
|
+ <version>${slf4jVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
|
+ <artifactId>slf4j-log4j12</artifactId>
|
|
|
|
+ <version>${slf4jVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!--文件上传包-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>commons-fileupload</groupId>
|
|
|
|
+ <artifactId>commons-fileupload</artifactId>
|
|
|
|
+ <version>${fileuploadVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- jsp页面使用的jstl支持-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>jstl</groupId>
|
|
|
|
+ <artifactId>jstl</artifactId>
|
|
|
|
+ <version>${jstlVersion}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- lombok插件导包-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
|
+ <version>${lombokVersion}</version>
|
|
|
|
+ <scope>provided</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
|
+ <artifactId>javax.servlet-api</artifactId>
|
|
|
|
+ <version>3.1.0</version>
|
|
|
|
+ <scope>provided</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
|
+ <version>1.0.9</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.geronimo.bundles</groupId>
|
|
|
|
+ <artifactId>aspectjweaver</artifactId>
|
|
|
|
+ <version>1.6.8_2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- shiro configuration -->
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-core -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
|
+ <artifactId>shiro-core</artifactId>
|
|
|
|
+ <version>1.3.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
|
+ <artifactId>shiro-spring</artifactId>
|
|
|
|
+ <version>1.3.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
|
+ <artifactId>shiro-web</artifactId>
|
|
|
|
+ <version>1.3.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.whalin/Memcached-Java-Client -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.whalin</groupId>
|
|
|
|
+ <artifactId>Memcached-Java-Client</artifactId>
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- jackson -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
+ <artifactId>jackson-core</artifactId>
|
|
|
|
+ <version>${jackson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
+ <artifactId>jackson-databind</artifactId>
|
|
|
|
+ <version>${jackson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
+ <artifactId>jackson-annotations</artifactId>
|
|
|
|
+ <version>${jackson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </dependencies>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <build>
|
|
|
|
+ <finalName>ssm</finalName>
|
|
|
|
+
|
|
|
|
+ <plugins>
|
|
|
|
+ <!--java8-->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
+ <configuration>
|
|
|
|
+ <source>1.8</source>
|
|
|
|
+ <target>1.8</target>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- mybatis-generator-maven-plugin-->
|
|
|
|
+ <!-- <plugin>
|
|
|
|
+ <groupId>org.mybatis.generator</groupId>
|
|
|
|
+ <artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
|
+ <version>1.3.2</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <verbose>true</verbose>
|
|
|
|
+ <overwrite>true</overwrite>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin> -->
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.tomcat.maven</groupId>
|
|
|
|
+ <artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
|
+ <version>2.2</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <path>/</path>
|
|
|
|
+ <port>8080</port>
|
|
|
|
+ <uriEncoding>UTF-8</uriEncoding>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ </build>
|
|
|
|
+</project>
|