直入主题,在连接Server端的时候后有以下代码:
private final static String ENTRY_POINT = "employee";
((ServiceDefTarget)employeeService).setServiceEntryPoint(GWT.getModuleBaseURL() + ENTRY_POINT);
不过这段代码是可以由以下标红的那一段代替,
@RemoteServiceRelativePath("employee")
public interface EmployeeService extends RemoteService{
@SuppressWarnings("unchecked")
List getEmployeeList();
}