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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

Eclipse+jetty+maven+Struts2+Spring2+Hibernate3+annotation注册系统V1.0

發布時間:2023/12/15 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Eclipse+jetty+maven+Struts2+Spring2+Hibernate3+annotation注册系统V1.0 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

來源:http://www.blogjava.net/nkjava/archive/2009/03/29/262708.html

主要是整合了開發環境,同時也有一些不足,用deploy.bat可以方便的進行部署。
下面是我用的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/maven-v4_0_0.xsd">
??
<modelVersion>4.0.0</modelVersion>
??
<groupId>cn.edu.nku</groupId>
??
<artifactId>ssh</artifactId>
??
<packaging>war</packaging>
??
<version>0.0.1-SNAPSHOT</version>
??
<name>ssh?Maven?Webapp</name>
??
<url>http://maven.apache.org</url>
??
<dependencies>
????
<dependency>
????????
<groupId>org.apache.struts</groupId>
????????
<artifactId>struts2-core</artifactId>
????????
<version>2.1.6</version>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.springframework</groupId>
????????
<artifactId>spring</artifactId>
????????
<version>2.5.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.apache.struts</groupId>
????????
<artifactId>struts2-spring-plugin</artifactId>
????????
<version>2.1.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.hibernate</groupId>
????????
<artifactId>hibernate</artifactId>
????????
<version>3.2.6.ga</version>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.hibernate</groupId>
????????
<artifactId>hibernate-annotations</artifactId>
????????
<version>3.4.0.GA</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>mysql</groupId>
????????
<artifactId>mysql-connector-java</artifactId>
????????
<version>5.1.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>junit</groupId>
????????
<artifactId>junit</artifactId>
????????
<version>4.5</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.slf4j</groupId>
????????
<artifactId>slf4j-log4j12</artifactId>
????????
<version>1.5.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.slf4j</groupId>
????????
<artifactId>slf4j-api</artifactId>
????????
<version>1.5.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>commons-dbcp</groupId>
????????
<artifactId>commons-dbcp</artifactId>
????????
<version>1.2.2</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.hibernate</groupId>
????????
<artifactId>hibernate-commons-annotations</artifactId>
????????
<version>3.3.0.ga</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.hibernate</groupId>
????????
<artifactId>hibernate-ehcache</artifactId>
????????
<version>3.3.1.GA</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.springframework</groupId>
????????
<artifactId>spring-orm</artifactId>
????????
<version>2.5.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
????
<dependency>
????????
<groupId>org.springframework</groupId>
????????
<artifactId>spring-webmvc</artifactId>
????????
<version>2.5.6</version>
????????
<type>jar</type>
????????
<scope>compile</scope>
????
</dependency>
??
</dependencies>
??
<build>
????
<finalName>ssh</finalName>
????
<plugins>
????????
<plugin>
????????????
<groupId>org.mortbay.jetty</groupId>
????????????
<artifactId>maven-jetty-plugin</artifactId>
????????????
<version>6.1.15.pre0</version>
???????????????
<configuration>
????????????????
<scanIntervalSeconds>3</scanIntervalSeconds>
????????????????
<stopKey>foo</stopKey>
????????????????
<stopPort>9999</stopPort>
????????
</configuration>?????????????????
????????
????????
<executions>
????????????????
<execution>
????????????????????????
<id>start-jetty</id>
????????????????????????
<phase>pre-integration-test</phase>
????????????????????????
<goals>
????????????????????????????????
<goal>run</goal>
????????????????????????
</goals>
????????????????????????
<configuration>
????????????????????????????????
<scanIntervalSeconds>0</scanIntervalSeconds>
????????????????????????????????
<daemon>true</daemon>
????????????????????????
</configuration>
????????????????
</execution>
????????????????
<execution>
????????????????????????
<id>stop-jetty</id>
????????????????????????
<phase>post-integration-test</phase>
????????????????????????
<goals>
????????????????????????????????
<goal>stop</goal>
????????????????????????
</goals>
????????????????
</execution>
????????
</executions>

????????
</plugin>
????????
<plugin>
????????????
<groupId>org.apache.maven.plugins</groupId>
????????????
<artifactId>maven-compiler-plugin</artifactId>
????????????
<version>2.0.2</version>
????????????
<configuration>
????????????????????
<source>1.5</source>
????????????????????
<target>1.5</target>
????????????????????
<encoding>UTF-8</encoding>
????????????
</configuration>
????????
</plugin>
????
</plugins>
??
</build>
</project>


總結

以上是生活随笔為你收集整理的Eclipse+jetty+maven+Struts2+Spring2+Hibernate3+annotation注册系统V1.0的全部內容,希望文章能夠幫你解決所遇到的問題。

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