抱歉我的英文不好。我有一个 GWT 项目。我想在客户端使用服务器类。
我有一个 RPC 服务,返回一个 "Route" 对象。
@RemoteServiceRelativePath("springGwtServices/RouteService")
public interface IRouteService extends RemoteService {
public ArrayList<Route> searchRoutes(String from, String to);
}
但我无法在客户端使用这个类。当我尝试导入时,会出现异常 "Route cannot be resolved to a type"。我可以在服务器上使用这个类吗?如果不能,我必须做些什么?附言:我已将所有需要的类放到共享文件夹中,并收到异常信息。
No source code is available for type project.shared.Route; did you forget to inherit a required module