SSH整合 pom.xml

Posted uiee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSH整合 pom.xml相关的知识,希望对你有一定的参考价值。

<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>per.uie.ssh</groupId>
    <artifactId>Company</artifactId>
    <packaging>war</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <name>Company Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <!-- 导入 ssh -->
    <!-- spring orm web test jdbc tx hibernate c3p0 mysql 驱动 struts spring-struts -->
    <properties>
        <!--spring的版本 -->
        <spring.version>5.1.6.RELEASE</spring.version>
        <!-- hibernate的版本 -->
        <hibernate.version>5.4.1.Final</hibernate.version>
        <!-- strtus2的版本 -->
        <struts2.version>2.5.20</struts2.version>
        <!-- slf4j日志所需要的版本 -->
        <slf4j.version>1.7.25</slf4j.version>
        <log4j.version>1.2.14</log4j.version>
        
        <!--c3p0连接池的版本 -->
        <c3p0.version>0.9.1.2</c3p0.version>
        <!--mysql的版本 -->
        <mysql.version>8.0.15</mysql.version>
        <!--servlet的版本 -->
        <servlet.version>2.5</servlet.version>
        <!-- jsp的版本 -->
        <jsp.version>2.0</jsp.version>
        <!--junit单元测试的版本 -->
        <junit.version>4.12</junit.version>
    </properties>
    <dependencies>
        <dependency>
            <!-- spring -->
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aspects</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <!-- hibernate -->
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>${hibernate.version}</version>
        </dependency>
        <!-- slf4j日志所需要的版本 -->
        <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>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>${log4j.version}</version>
        </dependency>
        <!-- c3p0连接池 -->
        <dependency>
            <groupId>c3p0</groupId>
            <artifactId>c3p0</artifactId>
            <version>${c3p0.version}</version>
        </dependency>
        <!--mysql -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.version}</version>
            <scope>runtime</scope>
        </dependency>
        <!-- struts -->
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts2-core</artifactId>
            <version>${struts2.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts2-spring-plugin</artifactId>
            <version>${struts2.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts2-json-plugin</artifactId>
            <version>${struts2.version}</version>
        </dependency>
        <!-- struts 注解开发 -->
        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts2-convention-plugin</artifactId>
            <version>${struts2.version}</version>
        </dependency>
        <!--servlet相关 -->
        <!-- <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> 
            <version>${servlet.version}</version> <scope>provided</scope> </dependency> -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jsp-api</artifactId>
            <version>${jsp.version}</version>
            <scope>provided</scope>
        </dependency>
        <!-- 单元测试 -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope><!-- 测试的时候需要 -->
        </dependency>
    </dependencies>
    <build>
        <finalName>Company</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

 

以上是关于SSH整合 pom.xml的主要内容,如果未能解决你的问题,请参考以下文章

SSH整合

springboot Thymeleaf 整合

使用 IDEA和Maven 整合SSH框架

Memcached的配置,SSH项目中的整合(com.whalin),Memcached工具类,Memcached的代码调用

sshmaven整合ssh框架(超详细步骤)

sshmaven整合ssh框架(超详细步骤)