日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Maven的学习资料收集--(九) 构建SSH项目以及专栏maven

發布時間:2023/12/19 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Maven的学习资料收集--(九) 构建SSH项目以及专栏maven 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在這里整合一下,使用Maven構建一個SSH項目

1.新建一個Web項目

可以參照前面的博客

2.添加依賴,修改pom.xml

?

[html]?view plaincopy
  • <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.deppon.demo</groupId>??
  • ??<artifactId>test06</artifactId>??
  • ??<packaging>war</packaging>??
  • ??<version>0.0.1-SNAPSHOT</version>??
  • ??<name>test06?Maven?Webapp</name>??
  • ??<url>http://maven.apache.org</url>??
  • ????
  • ??<!--?屬性配置?-->??
  • ??<properties>??
  • ??????<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>??
  • ??</properties>??
  • ????
  • ??<dependencies>??
  • ????<dependency>??
  • ??????<groupId>junit</groupId>??
  • ??????<artifactId>junit</artifactId>??
  • ??????<version>4.10</version>??
  • ??????<scope>test</scope>??
  • ????</dependency>??
  • ??????
  • ????<!--?添加SSH依賴?-->??
  • ????<!--?Struts2?-->??
  • ????<dependency>??
  • ????????<groupId>org.apache.struts</groupId>??
  • ????????<artifactId>struts2-core</artifactId>??
  • ????????<version>2.3.1</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.apache.struts</groupId>??
  • ????????<artifactId>struts2-spring-plugin</artifactId>??
  • ????????<version>2.3.1</version>??
  • ????</dependency>??
  • ??????
  • ?????<!--?添加Hibernate依賴?-->??
  • ????<dependency>??
  • ????????<groupId>org.hibernate</groupId>??
  • ????????<artifactId>hibernate-core</artifactId>??
  • ????????<version>3.6.5.Final</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>commons-dbcp</groupId>??
  • ????????<artifactId>commons-dbcp</artifactId>??
  • ????????<version>1.4</version>??
  • ????</dependency>??
  • ??????
  • ????<!--?添加Log4J依賴?-->??
  • ????<dependency>??
  • ????????<groupId>log4j</groupId>??
  • ????????<artifactId>log4j</artifactId>??
  • ????????<version>1.2.16</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ??????<groupId>org.slf4j</groupId>??
  • ??????<artifactId>slf4j-api</artifactId>??
  • ??????<version>1.6.1</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.slf4j</groupId>??
  • ????????<artifactId>slf4j-nop</artifactId>??
  • ????????<version>1.6.4</version>??
  • ????</dependency>??
  • ??????
  • ????<!--?添加javassist?-->??
  • ????<dependency>??
  • ????????<groupId>javassist</groupId>??
  • ????????<artifactId>javassist</artifactId>??
  • ????????<version>3.11.0.GA</version>??
  • ????</dependency>??
  • ??????
  • ????<!--?添加Spring依賴?-->??
  • ????<dependency>??
  • ????????<groupId>org.springframework</groupId>??
  • ????????<artifactId>spring-core</artifactId>??
  • ????????<version>3.1.1.RELEASE</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.springframework</groupId>??
  • ????????<artifactId>spring-beans</artifactId>??
  • ????????<version>3.1.1.RELEASE</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.springframework</groupId>??
  • ????????<artifactId>spring-context</artifactId>??
  • ????????<version>3.1.1.RELEASE</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.springframework</groupId>??
  • ????????<artifactId>spring-jdbc</artifactId>??
  • ????????<version>3.1.1.RELEASE</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.springframework</groupId>??
  • ????????<artifactId>spring-orm</artifactId>??
  • ????????<version>3.1.1.RELEASE</version>??
  • ????</dependency>??
  • ??????
  • ????<dependency>??
  • ????????<groupId>org.springframework</groupId>??
  • ????????<artifactId>spring-web</artifactId>??
  • ????????<version>3.1.1.RELEASE</version>??
  • ????</dependency>??
  • ??????
  • ??</dependencies>??
  • ??<build>??
  • ????<finalName>test06</finalName>??
  • ??</build>??
  • </project>??

  • 3.各種配置文件,各種代碼

    ?

    這里的話,就不貼代碼了,和使用MyEclipse開發Web項目是一樣的,在后一篇博客中也提到了,其實,之前的好多博客都是一樣的原理,都是修改依賴配置,其他沒什么,

    使用Maven構建SSH項目源碼:http://download.csdn.net/detail/jolingogo/5274494

    maven資料學習專欄:http://blog.csdn.net/column/details/yuguiyang-maven.html

    轉載于:https://www.cnblogs.com/gxbk629/p/3891370.html

    總結

    以上是生活随笔為你收集整理的Maven的学习资料收集--(九) 构建SSH项目以及专栏maven的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。