Does gwt 2.7 maven project must be multi moduled?

…衆ロ難τιáo~ 提交于 2019-12-10 18:09:55

问题


I don't remember where I've red that, for gwt 2.7.0 sdk maven module must consist of 3 submodules: server, shared and client.

But on github I've seen different projects for 2.7

Can any one can answer me this question?


回答1:


  1. Code in server - runs in servlet container (for example access to DB)
  2. Code in shared - can be used in client and in server codebase (for example DTOs - data transfer objects)
  3. Code in client - will be compiled to JavaScript and runs in browser

So you must decide yourself how much modules you need. If you code is a simple widget that does not communicate with server, you need only client module



来源:https://stackoverflow.com/questions/32248650/does-gwt-2-7-maven-project-must-be-multi-moduled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!