八、SpringMVC——ssm整合

專注的阿熊發表於2021-07-16

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns=" xmlns:xsi="

   xsi:schemaLocation="

   <modelVersion>4.0.0</modelVersion>

   <groupId>com.xbmu</groupId>

   <artifactId>chat07-ssm</artifactId>

   <version>1.0-SNAPSHOT</version>

   <packaging>war</packaging>

   <properties>

     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

     <maven.compiler.source>1.8</maven.compiler.source>

     <maven.compiler.target>1.8</maven.compiler.target>

   </properties>

   <dependencies>

     <dependency>

       <groupId>junit</groupId>

       <artifactId>junit</artifactId>

       <version>4.11</version>

       <scope>test</scope>

     </dependency>

     <dependency>

       <groupId>javax.servlet</groupId>

       <artifactId>javax.servlet-api</artifactId>

       <version>3.1.0</version>

       <scope>provided</scope>

     </dependency>

     <!--外匯跟單gendan5.com jsp 依賴 -->

     <dependency>

       <groupId>javax.servlet.jsp</groupId>

       <artifactId>jsp-api</artifactId>

       <version>2.2.1-b03</version>

       <scope>provided</scope>

     </dependency>

     <dependency>

       <groupId>org.springframework</groupId>

       <artifactId>spring-webmvc</artifactId>

       <version>5.2.5.RELEASE</version>

     </dependency>

     <dependency>

       <groupId>org.springframework</groupId>

       <artifactId>spring-tx</artifactId>

       <version>5.2.5.RELEASE</version>

     </dependency>

     <dependency>

       <groupId>org.springframework</groupId>

       <artifactId>spring-jdbc</artifactId>

       <version>5.2.5.RELEASE</version>

     </dependency>

     <dependency>

       <groupId>com.fasterxml.jackson.core</groupId>

       <artifactId>jackson-core</artifactId>

       <version>2.9.0</version>

     </dependency>

     <dependency>

       <groupId>com.fasterxml.jackson.core</groupId>

       <artifactId>jackson-databind</artifactId>

       <version>2.9.0</version>

     </dependency>

     <dependency>

       <groupId>org.mybatis</groupId>

       <artifactId>mybatis-spring</artifactId>

       <version>1.3.1</version>

     </dependency>

     <dependency>

       <groupId>org.mybatis</groupId>

       <artifactId>mybatis</artifactId>

       <version>3.5.1</version>

     </dependency>

     <dependency>

       <groupId>mysql</groupId>

       <artifactId>mysql-connector-java</artifactId>

       <version>5.1.9</version>

     </dependency>

     <dependency>

       <groupId>com.alibaba</groupId>

       <artifactId>druid</artifactId>

       <version>1.1.12</version>

     </dependency>

   </dependencies>

   <build>

     <resources>

       <resource>

         <directory>src/main/java</directory><!-- 所在的目錄 -->

         <includes><!-- 包括目錄下的 .properties,.xml 檔案都會掃描到 -->

           <include>**/*.properties</include>

           <include>**/*.xml</include>

         </includes>

         <filtering>false</filtering>

       </resource>

     </resources>

     <plugins>

       <plugin>

         <artifactId>maven-compiler-plugin</artifactId>

         <version>3.1</version>

         <configuration>

           <source>1.8</source>

           <target>1.8</target>

         </configuration>

       </plugin>

     </plugins>

   </build>

</project>


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69946337/viewspace-2781770/,如需轉載,請註明出處,否則將追究法律責任。

相關文章