[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.14.v20181114:run (default-cli) on project springExec: Failure: Failed to bind to 0.0.0.0/0.0.0.0:8080: Address already in use: bind -> [Help 1]

今天第一次接触jetty容器

下面是看其他前辈的总结

相同点
Tomcat和Jetty都是一种Servlet引擎,他们都支持标准的servlet规范和JavaEE的规范。

架构比较

Jetty的架构比Tomcat的更为简单

Jetty的架构是基于Handler来实现的,主要的扩展功能都可以用Handler来实现,扩展简单。

Tomcat的架构是基于容器设计的,进行扩展是需要了解Tomcat的整体设计结构,不易扩展。

原文:https://blog.csdn.net/classicbear/article/details/6968930

=======================================================
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.14.v20181114:run (default-cl

	<plugins>
		<!-- Jetty的Maven插件(mvn jetty:run) -->
		<plugin>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-maven-plugin</artifactId>
			<version>9.4.14.v20181114</version>
			<configuration>
				<scanIntervalSeconds>10</scanIntervalSeconds>
				<httpConnector>
					<port>8080</port>
				</httpConnector>
				<webApp>
					<contextPath>/</contextPath>
				</webApp>
			</configuration>
		</plugin>
	</plugins>

我改了端口号就好了,对详细的原理还在求索中。

相关文章:

  • 2021-09-29
  • 2021-09-02
  • 2021-08-04
  • 2021-10-30
  • 2022-01-12
  • 2022-12-23
  • 2021-06-26
  • 2021-06-16
猜你喜欢
  • 2021-07-19
  • 2021-04-03
  • 2021-06-30
  • 2021-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-11-28
相关资源
相似解决方案