3

Whenever I made code changes in GWT client side files I can just reload the browser or press "reload webserver" and the changes will be applied instantly. However, it doesn't work like that when I update my server side codes which means I have to stop the module and re-run it again which can take sometime. Is it suppose to happen like that? Is there anyway for the hosted mode to update instantly when I update server side code like client side?

Thanks

4

2 回答 2

3

“重新加载网络服务器”按钮是您正在寻找的:它“重新加载”您war/WEB-INF(classeslib) 中的所有类,并基本上重新启动您的网络应用程序。

如果它对您不起作用,那么可能是因为您没有将类编译到您的war/WEB-INF/classes和/或将它们放在 DevMode 的类路径中(然后您应该在 DevMode 窗口中看到警告说代码没有从webapp,但来自父类加载器)。

于 2011-06-23T08:34:20.773 回答
0

It is typical for server side code. Server code is run in Jetty and as far as I know it doesn't have option to reload automatically, though Tomcat has, so you could potentially run it in external server - there is such option.

One hint - don't stop and start, just use reload button (looks like refresh). It is much faster.

于 2011-06-22T21:46:36.843 回答