【SSM整合】-Maven管理SSM框架的pom.xml配置
【更新】【更新】換了資料庫連線池為阿里的Druid
- 第一次寫部落格,寫個簡單點吧
- 整合了一下SSM框架需要的maven依賴,專案初步使用沒有問題,以後需要什麼jar包缺什麼補什麼
- 抽空我會把相關的xml整合檔案,目錄結構等再發出來,編輯器用的是MyEclipse2017
<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>TestSSM</groupId>
<artifactId>TestSSM</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>TestSSM</name>
<description />
<properties>
<webVersion>3.0</webVersion>
<!-- 設定專案編碼編碼 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- spring版本號 -->
<spring.version>4.3.8.RELEASE</spring.version>
<!-- mybatis版本號 -->
<mybatis.version>3.4.4</mybatis.version>
<!-- logback版本號 -->
<logback.version>1.1.7</logback.version>
<!-- slf4j版本號 -->
<slf4j.version>1.7.21</slf4j.version>
</properties>
<dependencies>
<!-- java ee -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
<!-- 單元測試 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<!-- 實現slf4j介面並整合 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-spring</artifactId>
<version>0.1.4</version>
</dependency>
<!-- 映入JSON -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.8.8</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.8.7</version>
</dependency>
<!-- 資料庫 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.41</version>
<scope>runtime</scope>
</dependency>
<!-- 阿里Druid連線池 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.29</version>
</dependency>
<!-- MyBatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<!-- mybatis/spring整合包 -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.1</version>
</dependency>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</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-context</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-tx</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-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- 資料來源 -->
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.2</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.8.10</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>mchange-commons-java</artifactId>
<version>0.2.11</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceDirectory>${basedir}/WebRoot</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
相關文章
- ssm整合(maven版本)SSMMaven
- SSM框架整合(配置檔案)SSM框架
- SSM框架的整合SSM框架
- SSM框架整合SSM框架
- 整合SSM框架SSM框架
- Maven整合SSM框架(maven+spring+springmvc+mybatis)MavenSSM框架SpringMVCMyBatis
- SSM框架整合——書籍管理系統SSM框架
- SSM框架整合流程SSM框架
- SSM框架整合開發SSM框架
- ssm框架整合筆記SSM框架筆記
- SSM框架快速整合redisSSM框架Redis
- 快速整合搭建SSM框架SSM框架
- Maven整合SSM和Redis,親測MavenSSMRedis
- ssm整合SSM
- 【Java】SSM框架整合 附原始碼JavaSSM框架原始碼
- mybatis逆向工程和SSM框架整合MyBatisSSM框架
- SSM框架pom配置檔案SSM框架
- SSM框架SSM框架
- 使用xml檔案配置SSM整合XMLSSM
- SSM三大框架整合詳細教程SSM框架
- SpringMVC(3)- 校驗框架、SSM整合SpringMVC框架SSM
- SSM學習筆記3——整合 SpringMVC、整合SSMSSM筆記SpringMVC
- 【SSM框架整合】專案xml檔案、properties等檔案的配置SSM框架XML
- 基於maven構建多模組化的SSM框架MavenSSM框架
- ssm框架理解SSM框架
- ssm框架整合redis(demo)---通過cache方式SSM框架Redis
- SSM整合開發SSM
- ssm整合詳解SSM
- SSM 框架快速整合例項--學生查詢SSM框架
- ssm的配置檔案SSM
- 八、SpringMVC——ssm整合SpringMVCSSM
- SpringMVC-整合SSMSpringMVCSSM
- IDEA使用maven搭建SSM框架整合專案(超級詳細,值得一看)IdeaMavenSSM框架
- SSM衍生的配置檔案SSM
- SSM框架ApplicationContext.xml檔案配置SSM框架APPContextXML
- SSM專案整合——後端SSM後端
- Mybatis20_ssm整合10MyBatisSSM
- SSM整合之CRUD環境搭建整合SSM