资 源 简 介
The gwtrpc-spring jar allows for simple integration of Spring and GWT 2.4 to 1.6. Instead of having a separate servlet for each service there is one RemoteServiceServlet that looks the configured SpringContext for a instance of a class that implements the Remote Service. So that means your services don"t have to inherit RemoteServiceServlet just implement your RemoteService interface. That means any Spring POJO can become a Gwt RPC Service.
To set it up:
Add the gwtrpc-spring jar to your /war/WEB-INF/lib directory
Add the spring jars to to your /war/WEB-INF/lib directory (i.e. spring-core.jar, spring-beans.jar, spring-context.jar and spring-web.jar)
Edit your web.xml to add the dispatcher servlet
dispatcher org.gwtrpcspring.RemoteServiceDispatcher
Edit the web.xml to add t