GWT中托管/开发模式和Web模式之间的区别 [英] difference between hosted/development mode and web mode in GWT

查看:116
本文介绍了GWT中托管/开发模式和Web模式之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GWT的新手,我听说过使用托管/开发模式和网络模式的人。

有人可以解释这些吗?

在eclipse中,你实现了java代码。在开发过程中,您可以在开发模式下运行应用程序。像这样的Runnig,gwt客户端的东西是由eclipse插件作为java代码运行的。
允许调试,在控制台中进行跟踪。



当您在Web模式下运行时,在外部服务器上,您必须导出/部署war文件。
在此之前,您运行了gwt编译器,该编译器将java代码转换为与各种浏览器功能完全匹配的许多javascript代码。



这些被称为'permutations'做谷歌编译gwt



开发模式中的好处是:跟踪,实时调试,但有点慢。



Web模式中的好处是:速度,无论客户端浏览器如何。



希望这有助于其他人欢迎扩展此答复。 / p>

I am new to GWT and I have heard of people using the terms hosted/development mode and web mode.
Can somebody please explain these?

解决方案

I'll try quickly,

In eclipse, you implement java code. While you develop, you can run your applications in developement mode. Runnig like this, gwt client stuff is ran by eclipse plugins as java code. Allowing debug, tracing in console.

When you run it in a web mode, on a extrenal server, you have to export/deploy war files. Before this, you ran the gwt compiler which converts java code to many flavours of javascript matching exactly each browser capabilities.

These are called 'permutations' when you do "google>compile gwt"

The good things in dev mode are: tracing, realtime debugging, but is a bit slow.

The good things in web mode are: speed, no matter of client browser.

Hope this helps, others are welcome to extend this reply.

这篇关于GWT中托管/开发模式和Web模式之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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