共享包在GWT中的重要性 [英] Importance of Shared Package in GWT

查看:87
本文介绍了共享包在GWT中的重要性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到GWt不会编译不在客户端软件包中的类。但共享软件包的重要性如何?我需要在这个包中加入哪些类?

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?

推荐答案


这个包里需要什么类
? / p>

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.

这篇关于共享包在GWT中的重要性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆