在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/Java  網(wǎng)絡(luò)安全/ maven 項(xiàng)目 用jetty運(yùn)行報(bào)錯(cuò).

maven 項(xiàng)目 用jetty運(yùn)行報(bào)錯(cuò).

具體報(bào)錯(cuò)如下:
[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.16.v20140903:run (default-cli) on project tccglxt4j: Failure: Address already in use: bind -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confl...

提示地址被占用, 是否要想Tomcat那樣 改端口,還是重啟jetty, 怎么重啟啊新手第一次使用jetty,望指出明路。

回答
編輯回答
我不懂

兩種方式
mvn jetty:run -Djetty.http.port=9999

<build>
  <plugins>
    <plugin>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-maven-plugin</artifactId>
      <version>9.2.1.v20140609</version>
      <configuration>
        <httpConnector>
          <!--host>localhost</host-->
          <port>9999</port>
        </httpConnector>
      </configuration>
    </plugin>
  </plugins>
</build>
2017年4月24日 22:50
編輯回答
萌吟

可以修改端口,也可以kill掉默認(rèn)的端口,然后重啟。

2018年6月28日 03:59