作者:手机用户2502883515 | 来源:互联网 | 2023-10-09 19:19
idea社区版本 创建javaweb项目后使用jetty启动
<dependencies>
<dependency>
<groupId>javax.servletgroupId>
<artifactId>javax.servlet-apiartifactId>
<version>3.0.1version>
dependency>
<dependency>
<groupId>org.eclipse.jettygroupId>
<artifactId>jetty-jspartifactId>
<version>9.0.0.v20130308version>
dependency>
dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jettygroupId>
<artifactId>jetty-maven-pluginartifactId>
<version>9.0.0.v20130308version>
<configuration>
<contextPath>/mytestcontextPath>
<httpConnector>
<port>8082port>
httpConnector>
configuration>
plugin>
plugins>
build>