GWT和Spring MVC,值得吗? [英] GWT and Spring MVC, is it worth it?

查看:133
本文介绍了GWT和Spring MVC,值得吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何理由使用Spring MVC(或其他类似的框架)作为GWT RPC的服务器?据我所知,Spring的99.9%功能将不会被使用。然而,很多人都在寻找最好的方式来使用它们。



有人可以解释一下,GWT使用MVC框架(在服务器上)有什么好处,当你在服务器端需要的所有东西都是业务逻辑的时候?

解决方案

另一个企业级Java MVC库(如Struts)和一层 - 正如您所说 - 只提供业务逻辑(因此可以保持尽可能小而干净)。



<但是Spring本身不仅仅是一个Web(MVC)框架层,而且使用依赖注入或AOP特性或者ORM API或者脚本语言Groovy(它可以很好地与Spring一起使用)对于任何应用程序来说都是一个巨大的好处。

Is there any reason to use Spring MVC (or other similar frameworks) as a server for GWT RPC? As far as I can tell, 99.9% features of Spring will not be used. Yet, lots of people are looking for best ways to use them together.

Could someone please explain, what are the benefits of using MVC frameworks (on server) with GWT, when all you need on server side is business logic?

解决方案

I don't see any generally good point in using Spring MVC or another enterprise Java MVC library (like Struts) together with a layer which - as you said - offers only business logic (and therefore can be kept as small and clean as possible).

But Spring itself is way more than just a web (MVC) framework layer and using the dependency injection or AOP features or the ORM API or the Scripting language Groovy (which works fine with Spring) can be a huge benefit for any application.

这篇关于GWT和Spring MVC,值得吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆