• ssm所需要的pom(jre8、tomcat8、spring4)


    <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/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.isd</groupId>
        <artifactId>zte</artifactId>
        <packaging>war</packaging>
        <version>0.0.1-SNAPSHOT</version>
        <name>zte Maven Webapp</name>
        <url>http://maven.apache.org</url>
    
        <!-- 统一管理版本号 -->
        <properties>
            <!-- spring版本号 -->
            <spring.version>4.3.7.RELEASE</spring.version>
            <!-- mybatis版本号 -->
            <mybatis.version>3.4.2</mybatis.version>
            <!-- Servlet-API -->
            <servlet.version>6.0.53</servlet.version>
            <!-- log4j日志文件管理包版本 -->
            <slf4j.version>1.7.7</slf4j.version>
            <log4j.version>1.2.17</log4j.version>
        </properties> 
    
    
        <!-- 项目所需依赖的jar -->
        <dependencies>
            <!-- spring框架包 start -->  
            <!-- ioc配置start-->  
            <!-- Spring 基本核心工具包:
                 Spring 其它组件要都要使用到这个包里的类,是其它组件的基本核心
            -->  
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-core</artifactId>    
                <version>${spring.version}</version>    
            </dependency>  
            <!-- Spring核心提供了大量扩展 -->  
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-context</artifactId>    
                <version>${spring.version}</version>    
            </dependency>    
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-context-support</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- SpEL表达式语言支持
                http://www.cnblogs.com/best/p/5748105.html
            -->
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-expression</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- ioc配置end--> 
            <!-- aop配置 -->
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-aop</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- 声明式和编程式事务管理支持 --> 
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-tx</artifactId>    
                <version>${spring.version}</version>    
            </dependency> 
            <!-- spring与持久层整合包
                参考:http://blog.csdn.net/qh_java/article/details/43699137
                spring没有提供orm框架但是,提供了很好的和orm框架这个的代沟,
                我们可以和流行的orm框架进行整合,比如Spring与Mybatis  --> 
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-orm</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- Spring JDBC
            提供了一套JDBC抽象框架,用于简化JDBC开发 ,但是现在基本不用jdbc开发-->
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-jdbc</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- spring测试 -->
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-test</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- 对Object/XMl的映射支持,可以让Java与XML之间来回切换 -->  
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-oxm</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- springmvc所需strart 
                依赖spring-context, servlet-api
            -->    
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-web</artifactId>    
                <version>${spring.version}</version>    
            </dependency>    
            <dependency>    
                <groupId>org.springframework</groupId>    
                <artifactId>spring-webmvc</artifactId>    
                <version>${spring.version}</version>    
            </dependency>
            <!-- springmvc所需end -->
            <!-- @responseBody注解所需的包start -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>2.7.4</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>2.7.4</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
                <version>2.7.4</version>
            </dependency>
            <!-- @responseBody注解所需的包end -->
            <!-- spring框架包 end -->
    
    
    
            <!-- mybatis框架包 start -->    
            <dependency>    
                <groupId>org.mybatis</groupId>    
                <artifactId>mybatis</artifactId>    
                <version>${mybatis.version}</version>    
            </dependency>    
            <dependency>    
                <groupId>org.mybatis</groupId>    
                <artifactId>mybatis-spring</artifactId>    
                <version>1.3.1</version>    
            </dependency>    
            <!-- mybatis框架包 end -->  
    
    
    
    
            <!-- 数据库驱动 -->    
            <dependency>    
                <groupId>mysql</groupId>    
                <artifactId>mysql-connector-java</artifactId>    
                <version>5.1.35</version>    
            </dependency>    
            <!-- 数据源连接池技术包 -->    
            <dependency>    
                <groupId>commons-dbcp</groupId>    
                <artifactId>commons-dbcp</artifactId>    
                <version>1.4</version>    
            </dependency>  
            <!-- 单元测试包 -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>3.8.1</version>
                <scope>test</scope>
            </dependency>
            <!-- java ee包(方便开发的时候用,部署的时候tomcat里有) -->    
            <dependency>    
                <groupId>org.apache.tomcat</groupId>    
                <artifactId>servlet-api</artifactId>    
                <version>${servlet.version}</version>    
            </dependency>    
            <!-- jstl标签类 -->    
            <dependency>    
                <groupId>jstl</groupId>    
                <artifactId>jstl</artifactId>    
                <version>1.2</version>    
            </dependency>    
            <!-- log start -->    
            <dependency>    
                <groupId>log4j</groupId>    
                <artifactId>log4j</artifactId>    
                <version>${log4j.version}</version>    
            </dependency>    
            <dependency>    
                <groupId>org.slf4j</groupId>    
                <artifactId>slf4j-api</artifactId>    
                <version>${slf4j.version}</version>    
            </dependency>    
            <dependency>    
                <groupId>org.slf4j</groupId>    
                <artifactId>slf4j-log4j12</artifactId>    
                <version>${slf4j.version}</version>    
            </dependency>    
            <!-- log END -->  
            <!-- 分页插件 -->
            <dependency>
                <groupId>com.github.penggle</groupId>
                <artifactId>kaptcha</artifactId>
                <version>2.3.2</version>
            </dependency>
        </dependencies>
    
        <!-- 配置插件 -->
        <build>
            <finalName>zte</finalName>
            <plugins>
                <!-- 指定maven的JDK版本和编码:配置某版本jdk编译,不设置默认用jdk1.5 -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    </configuration>
                </plugin>
                <!-- mybaits自动代码生成:https://my.oschina.net/lilw/blog/168304-->
                <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> 
            </plugins>
        </build>
    
        <!-- 参考:
        http://www.cnblogs.com/BensonHe/p/3903050.html
        http://www.itkeyword.com/doc/3075579787451136x902/pom-jar-spring
        http://blog.csdn.net/defonds/article/details/47445915 -->
    </project>

    或者

    <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.dsh</groupId>
      <artifactId>pgjs</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>war</packaging>
       <!-- 统一管理版本号 -->
        <properties>
            <junit.version>4.12</junit.version>
            <spring.version>4.1.3.RELEASE</spring.version>
            <mybatis.version>3.2.8</mybatis.version>
            <mybatis.spring.version>1.2.2</mybatis.spring.version>
            <mybatis.paginator.version>1.2.15</mybatis.paginator.version>
            <mysql.version>5.1.32</mysql.version>
            <slf4j.version>1.6.4</slf4j.version>
            <jackson.version>2.4.2</jackson.version>
            <druid.version>1.0.9</druid.version>
            <httpclient.version>4.3.5</httpclient.version>
            <jstl.version>1.2</jstl.version>
            <servlet-api.version>2.5</servlet-api.version>
            <jsp-api.version>2.0</jsp-api.version>
            <joda-time.version>2.5</joda-time.version>
            <commons-lang3.version>3.3.2</commons-lang3.version>
            <commons-io.version>1.3.2</commons-io.version>
            <commons-net.version>3.3</commons-net.version>
            <pagehelper.version>3.4.2-fix</pagehelper.version>
            <jsqlparser.version>0.9.1</jsqlparser.version>
            <commons-fileupload.version>1.3.1</commons-fileupload.version>
            <jedis.version>2.7.2</jedis.version>
            <solrj.version>4.10.3</solrj.version>
        </properties>
    
    
    
        <!-- 项目所需依赖的jar -->
        <dependencies>
        
                <!-- Jackson Json处理工具包(springmvc的注解@ResponseBody需要此包) -->
                <dependency>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-databind</artifactId>
                    <version>${jackson.version}</version>
                </dependency>
                <!-- 单元测试 -->
                <dependency>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                    <version>${junit.version}</version>
                    <scope>test</scope>
                </dependency>
                <!-- 日志处理 -->
                <dependency>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                    <version>${slf4j.version}</version>
                </dependency>
                <!-- Mybatis -->
                <dependency>
                    <groupId>org.mybatis</groupId>
                    <artifactId>mybatis</artifactId>
                    <version>${mybatis.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.mybatis</groupId>
                    <artifactId>mybatis-spring</artifactId>
                    <version>${mybatis.spring.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.github.miemiedev</groupId>
                    <artifactId>mybatis-paginator</artifactId>
                    <version>${mybatis.paginator.version}</version>
                </dependency>
                <!-- MySql -->
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>${mysql.version}</version>
                </dependency>
                <!-- 连接池 -->
                <dependency>    
                    <groupId>commons-dbcp</groupId>    
                    <artifactId>commons-dbcp</artifactId>    
                    <version>1.4</version>    
                </dependency> 
                <!-- Spring -->
                <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-context</artifactId>
                    <version>${spring.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-beans</artifactId>
                    <version>${spring.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-webmvc</artifactId>
                    <version>${spring.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-jdbc</artifactId>
                    <version>${spring.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-aspects</artifactId>
                    <version>${spring.version}</version>
                </dependency>
                <!-- JSP相关 -->
                <dependency>
                    <groupId>jstl</groupId>
                    <artifactId>jstl</artifactId>
                    <version>${jstl.version}</version>
                </dependency>
                <dependency>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                    <version>${servlet-api.version}</version>
                    <scope>provided</scope>
                </dependency>
                <dependency>
                    <groupId>javax.servlet</groupId>
                    <artifactId>jsp-api</artifactId>
                    <version>${jsp-api.version}</version>
                    <scope>provided</scope>
                </dependency>
        </dependencies>
    
        <!-- 配置插件 -->
        <build>
            <finalName>pgjs</finalName>
            <plugins>
                <!-- 指定maven的JDK版本和编码:配置某版本jdk编译,不设置默认用jdk1.5 -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    </configuration>
                </plugin>
            </plugins>
        </build>
      
    </project>
  • 相关阅读:
    .NET 3.54.0 并行计算的支持
    温故知新ASP.NET 2.0(C#)(5) Localization(本地化,多语言)
    [翻译]asp.net 2.0中通过压缩ViewState改善性能
    C# 2.0 泛型
    温故知新ASP.NET 2.0(C#)(8) DataSourceControl(数据源控件)
    温故知新ASP.NET 2.0(C#)(1) MasterPage(母版页)
    [翻译]asp.net 2.0中页的生存周期(Lifecycle)和动态控件
    [翻译]ASP.NET AJAX之内部揭秘
    乐在其中设计模式(C#) 命令模式(Command Pattern)
    [翻译]ASP.NET AJAX调用Web Service
  • 原文地址:https://www.cnblogs.com/dshvv/p/9646064.html
Copyright © 2020-2023  润新知