Google App Engine, Java Frameworks?

2019-07-31 18:58发布

问题:

I'm going to implement an web app in gae.
I was wondering which is the best framwork for that?
I used the struts2 but it seems to be not supported.
Is there any MVC or similat inside the GAE?
What do you think is the best way?

PS: the application should be basically a collections of user profiles (with different informations) + a collections of place descriptions (which picture, descriptions, and user comments).

回答1:

You can check the list of libraries and frameworks that are tested to work on GAE. It seems that Struts 2 is supported via a workaround.

Personally I'd go with something more modern such as Play, Sitebricks or my favorite: JAX-RS with Freemarker.

Also, if you are not afraid to try something new go with GWT (as @Carlos already suggested). It's a steep learning curve, but worth it.



回答2:

I'd go with GWT; it allows you to build RIA applications and its supported directly by Google Plugin for Eclipse. For dependency injection, you can use Guice for Server Components and Gin for GWT client classes.