问题
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:
- Code in server - runs in servlet container (for example access to DB)
- Code in shared - can be used in client and in server codebase (for example DTOs - data transfer objects)
- 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