国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

IDEA的run maven方式啟動步驟詳解

瀏覽:5日期:2024-08-26 09:30:05

安裝jetty插件

1. 找到Plugins,查找jetty插件,安裝“IDEA Jetty Runner”,安裝好后重啟IDEA

IDEA的run maven方式啟動步驟詳解

IDEA的run maven方式啟動步驟詳解

安裝插件:Maven Helper

方法同Jetty

pom.xml添加

<plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.15.v20190215</version> </plugin> </plugins>

配置maven:jetty:run -Djetty.port=8088

1. Run-->Edit Configurations

IDEA的run maven方式啟動步驟詳解

2. jetty:run -Djetty.port=8088(注意這里的端口號,被占用了就換一個)

IDEA的run maven方式啟動步驟詳解

執(zhí)行

項目右鍵-->run maven-->clean install

IDEA的run maven方式啟動步驟詳解

然后再執(zhí)行:項目右鍵-->run maven-->test03bulid

新建jsp文件

新建index.jsp文件,是顯示頁面,可以直接復(fù)制原有的index.jsp文件

IDEA的run maven方式啟動步驟詳解

網(wǎng)址

http://localhost:8088/user/test?id=1

IDEA的run maven方式啟動步驟詳解

遇到問題

問題1:plugins里添加的插件不顯示

不要寫到這個標簽里面的plugins里:

<pluginManagement> <pluginManagement> <plugins> ... </plugins> </pluginManagement> <plugins> 寫到這里 </plugins>

問題2:頁面報錯500:PWC6033: Unable to compile class for JSP

用的JDK版本是JDK9。修改了對應(yīng)的jetty版本改之后:

<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.15.v20190215</version> </plugin>

改之前:

<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.1.6.v20100715</version> <configuration> <stopPort>9088</stopPort> <stopKey>foo</stopKey> <scanIntervalSeconds>5</scanIntervalSeconds> <connectors> <connector implementation='org.eclipse.jetty.server.nio.SelectChannelConnector'> <port>8081</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <webAppConfig> <contextPath>/</contextPath> </webAppConfig> </configuration> </plugin>

問題3:頁面錯誤404

查看網(wǎng)址,在網(wǎng)址指定位置(jsp/index.jsp)新建了一個index.jsp文件

到此這篇關(guān)于IDEA的run maven方式啟動步驟詳解的文章就介紹到這了,更多相關(guān)IDEA的run maven方式啟動內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!

標簽: IDEA
相關(guān)文章:
主站蜘蛛池模板: 板桥市| 双城市| 古蔺县| 汶上县| 罗江县| 怀安县| 屏东市| 沭阳县| 玉龙| 左权县| 兰考县| 金溪县| 阿坝县| 巨野县| 平乐县| 新郑市| 铜鼓县| 京山县| 雷州市| 图们市| 阜阳市| 崇义县| 博乐市| 刚察县| 诏安县| 黔西| 铅山县| 南充市| 满城县| 邓州市| 靖江市| 长岛县| 荆门市| 屯昌县| 凤山县| 茂名市| 醴陵市| 南城县| 祁连县| 巫溪县| 旅游|