tomcat配置jetty启动项目

一\配置jetty依赖 :

修改pox.xml文件

<name>I.T Web Shop</name>

<packaging>war</packaging> // 如果是jar就打成jar包,如果是war就打成war


在<dependencies>标签内加入:

<dependency>

<groupId>org.mortbay.jetty</groupId>

<artifactId>jsp-2.1-jetty</artifactId>

<version>${jetty.version}</version>

<scope>test</scope>

</dependency>


二、配置eclipse启动

tomcat配置jetty启动项目


tomcat配置jetty启动项目


tomcat配置jetty启动项目