0
SimpleUrlHandlerMappingを使用してDispatcherServletによって というコントローラを実装することで、すでにSpring MVCとGWTを統合しました。Annotation Approachを使用したGwtコントローラ
public class GwtRpcController extends RemoteServiceServlet implements Controller, ServletContextAware { @Override public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { super.doPost(request, response); return null; } }
私は以下のように、注釈@Controller
で新しいアプローチを使用したい:
@Controller public class GwtRpcController extends RemoteServiceServlet implements ServletContextAware { }
この場合は、私がsuper.doPost(request, response);
行う必要があります何のhandleRequestメソッド、存在しませんか?
コントローラをGWTとSpringを統合するためにのみ使用しています。コントローラーは、関連するRemoteServiceServlet Implをリンクのように呼び出します。(http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step)コントローラがGWTのように動作する必要がありますRemoteServiceServlet doPostまたは何らかの理由で。 –