Maven运行hello2示例

使用Maven运行hello2示例

1.启动GlassFish Server,启动命令:asadmin start-domin (停止:asadmin stop-domain  )。

2.在终端窗口中,转到:

tutorial-examples-master/web/servlet/hello2/

3.输入以下命令

mvn install

4.此目标构建WAR文件,浏览器进入Glassfish管理台localhost:4848,部署hello2的war文件

5.点laugh运行

6.出错可打开以下URL运行:

http://localhost:8080/hello2/greetingl

猜你喜欢

转载自www.cnblogs.com/phs007/p/10559315.html
今日推荐