我如何开始使用Wicket? [英] How can I begin using Wicket?

查看:168
本文介绍了我如何开始使用Wicket?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根据Wicket网站的规则安装了Wicket。如何在我的IDE,Eclipse中运行Wicket?我已经添加了所有必需的插件。

I installed Wicket per the rules of the Wicket site. How do I run Wicket within my IDE, Eclipse? I have added all the necessary plug-ins.

推荐答案

我希望您已经按照快速入门指南配置: http://wicket.apache.org/start/quickstart.html

I expect you have configured as per quick-start guide here: http://wicket.apache.org/start/quickstart.html

还有一个Eclipse的配置设置。现在,如果您在Eclipse中有项目,并且安装了 m2eclipse插件(Maven-2 for Eclipse)。按照以下步骤:

There is a configuration setting for Eclipse as well. Now, if you have your project in Eclipse and you have m2eclipse plugin (Maven-2 for Eclipse) installed. Follow the steps below:


  1. 右键单击Wicket项目文件夹,选择运行As> Maven Clean ,然后运行As> Maven安装。这将构建您的Wicket项目。

  2. 要启动Jetty,您将需要执行更多步骤

    • 右键单击wicket项目文件夹,'运行As'运行配置...`

    • 创建新的Maven Build配置,提供一个名称,选择wicket projects目录为 Base Directory 目标键入 jetty:run 。现在,您将在 localhost上运行您的应用程序:8080 / yourAppName

  1. Right click on the Wicket project folder, select run As > Maven Clean, then run As > Maven Install. This will build your Wicket project.
  2. TO start Jetty, you will need to do some more steps
    • Right click on wicket project folder, 'run As > run configurations..`
    • Create new Maven Build configuration, give a name, select wicket projects directory as Base Directory, in Goals type in jetty:run. Now, you will have jetty running your application at localhost:8080/yourAppName

Jetty运行配置将在运行As 菜单中提供,以备将来使用。

The Jetty run configuration will be available in run As menu for future usage.

这几乎是!

这篇关于我如何开始使用Wicket?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆