Spring MVC Maven 目标不适用于 GWT

发布于 2024-12-15 00:48:13 字数 345 浏览 5 评论 0原文

我尝试创建一个非常简单的 Roo 示例项目(您可以在 roo 主页上找到的项目:http://www.roo.org/spring-roo)。 springsource.org/spring-roo)。它在内存DB中使用GWT和Hysonic。

当我尝试使用 mvn gwt:run 时,一切正常,但如果我使用 mvn tomcat:run 启动 tomcat,那么在我的浏览器中我只能看到一个带有“正在加载...”的页面,并且没有任何反应。

看来tomcat启动没有报错。

我错过了什么吗?

I tried to create a very easy Roo Sample Project (the one you find on roo homepage: http://www.springsource.org/spring-roo). It uses GWT and Hypersonic in memory DB.

When i try to use mvn gwt:run everything is ok, but if I use mvn tomcat:run to start tomcat then in my browser I can only see a page with "loading..." in it and nothing happens.

It seems there are no error in tomcat startup.

Am I missing something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久随 2024-12-22 00:48:13

不,你没有错过任何东西。当您使用 Spring MVC 运行 GWT 应用程序时,不能使用相同的 Maven 目标。

根据您的视图控制器选择以下之一。

GWT:mvn gwt:run

Spring MVC:mvn tomcat:run

No, you are not missing anything. You cannot use the same Maven goal when you are running a GWT application with Spring MVC.

Depending on your view controllers pick one of the below.

GWT : mvn gwt:run

Spring MVC : mvn tomcat:run

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文