【问题标题】:Application upgrade issue from GWT-2.0.3 to GWT-2.7.0?从 GWT-2.0.3 到 GWT-2.7.0 的应用程序升级问题?
【发布时间】:2016-02-25 13:17:18
【问题描述】:

在我现有的 GWT 2.0.3 项目中,在该 RpcService 接口中,存在 HybridServiceServlet 类和 ClientOracle 抽象类但是当我在 GWT 2.7 中迁移时,RPCService 接口、HybridServiceServlet 类和 ClientOracle 抽象类不存在。你能告诉我 RpcService、HybridServiceSerlet 和 ClientOracle 在 GWT 2.7 中不存在,那么在 GWT 2.7 中使用哪些类和接口而不是这个

【问题讨论】:

    标签: java gwt gwt-rpc


    【解决方案1】:

    在 GWT 2.0 中,这些类被标记为实验性 - 实验没有成功,它们被删除了。

    /**
     * EXPERIMENTAL and subject to change. Do not use this in production code.
     * <p>
     * Marker interface to be used with RpcServlet.
     */
    public interface RpcService extends RemoteService {
    }
    

    相反,请继续使用早期版本的 GWT 中的 RemoteService - 这仍然可以正常工作,并且仍受最新版本的支持。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多