Search code examples
eclipsegwtspring-mvctomcat7

Spring MVC - GWT integration Using Spring STS


I have a spring mvc-based application using spring STS.

I want to integrate it with GWT , so I can build nice UI.

I saw this.

From this thread

But they weren't using spring sts, and the post is almost 5 years old.

My question is:

  1. Should I stay in my spring mvc project, or should I open a GWT project?

  2. In case I can stay with my spring mvc project, what are the steps I need to do, to perform a connection between my GWT client and my spring Service tier?

Any code example or tutorials will be great!


Solution

  • You can integrate GWT with Spring MVC using Spring MVC REST and GWT JavaScriptObjects.

    Take a look at the following GitHub code.

    For a more "complicated" example of using JavaScriptObject, look here.