我如何开始使用Wicket? [英] How can I begin using 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:
- 右键单击Wicket项目文件夹,选择
运行As> Maven Clean
,然后运行As> Maven安装
。这将构建您的Wicket项目。 - 要启动Jetty,您将需要执行更多步骤
- 右键单击wicket项目文件夹,'运行As'运行配置...`
- 创建新的Maven Build配置,提供一个名称,选择wicket projects目录为
Base Directory
,目标
键入jetty:run
。现在,您将在localhost上运行您的应用程序:8080 / yourAppName
- Right click on the Wicket project folder, select
run As > Maven Clean
, thenrun As > Maven Install
. This will build your Wicket project. - 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
, inGoals
type injetty:run
. Now, you will have jetty running your application atlocalhost:8080/yourAppName
Jetty运行配置将在运行As
菜单中提供,以备将来使用。
The Jetty run configuration will be available in run As
menu for future usage.
这几乎是!
这篇关于我如何开始使用Wicket?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!