Importance of Shared Package in GWT

删除回忆录丶 提交于 2019-12-22 06:32:17

问题


I realize that GWt doesn't compile the classes not in the Client package. But what is the importance of the shared package? What are the classes that I need to put in this package?


回答1:


What are the classes that I need to put in this package?

Any logic or data types that are used by both the client and the server. This will save you from duplicating code across both sides, and potentially keep the logic and data types consistent.



来源:https://stackoverflow.com/questions/3356100/importance-of-shared-package-in-gwt

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