Spring MVC Maven 目标不适用于 GWT
我尝试创建一个非常简单的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
不,你没有错过任何东西。当您使用 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