GWT开发者模式代码服务器 [英] GWT developer mode code server
问题描述
GWT开发者模式嵌入式http服务器对我来说意义重大,但我承认我不明白代码服务器是什么。它让我想起了一个html文件,它包装了浏览器在开发过程中使用嵌入式Jetty服务器处理AJAX来呈现GWT应用程序所需的所有JavaScript代码。所以我正在寻找一个包含GWT的开发者模式代码服务器的解释。或许解释它正在做什么就足够了。
当应用程序以
开发模式运行时, Java Virtual
Machine(JVM)实际上正在执行
应用程序代码,编译为Java
字节码,使用GWT管道连接到
连接到浏览器窗口。这
意味着
IDE的调试工具可用于调试
客户端GWT代码以及任何
服务器端Java代码。在传统的
代码 - 测试 - 调试周期中,
仍然是
,开发
模式是迄今为止最有效的方式
来快速开发您的应用程序。
The GWT developer mode embedded http server makes all the sense in the world to me but I confess I do not understand what the "code server" is all about. It strikes me that an html file wraps all the javascript code the browser needs to render the GWT application with the embedded Jetty server handling AJAX during development. So I'm looking for an explanation for including a developer mode code server with GWT. Maybe an explanation of what it is doing will suffice.
As usual, official docs to the rescue!
When an application is running in development mode, the Java Virtual Machine (JVM) is actually executing the application code as compiled Java bytecode, using GWT plumbing to connect to a browser window. This means that the debugging facilities of your IDE are available to debug both your client-side GWT code and any server-side Java code as well. By remaining in this traditional "code-test-debug" cycle, development mode is by far the most productive way to develop your application quickly.
这篇关于GWT开发者模式代码服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!