用Spring MVC替换Struts2 [英] Replacing Struts2 with spring mvc

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

问题描述

我已经看到了很多关于Struts2和Spring MVC之间的区别的问题.但是我的问题是:

I've seen plenty of questions about the difference between Struts2 and Spring MVC. But my question is the following:

我有一个需要重新开发的大型Web应用程序,它基于Struts2. 我要做的是集成Hibernate + Spring + Spring Security +潜在的Spring DM(因为我们希望使其尽可能模块化).

I have a large-scale web app that needs reworking and its based on Struts2. What I want to do is integrate Hibernate + Spring + Spring Security + Potentially Spring DM ( since we want to make it as modular as possible).

现在,您可以看到它已经进行了大量的返工,所以我想知道如果我离开Struts2(以减少一点返工)的话,这会在将来引起严重的性能问题吗?

Now as you can see its already a lot of reworking, so I am wondering IF in case I leave Struts2 (to reduce a tiny bit my rework) would this cause a significant perfromance issue in the future?

我的问题主要是其他人之前问过的问题的延续.但是,我感兴趣的不是,如果有可能,更像是保留Struts2会对性能造成的影响.

My question is mainly a continuation the question asked by others before. However what I am interested in is not if its possible, more like what would cost in terms of performance if I keep Struts2.

谢谢

推荐答案

在将Struts2替换为Spring MVC的决定中,我不认为性能"是关键因素.

I don't see "performance" as a key factor in the decision of replacing Struts2 with Spring MVC.

如果您的应用程序当前存在性能问题,我怀疑所使用的核心Web框架(Struts2或Spring MVC)是造成这种情况的原因.

If your application currently has performance issues, I doubt that the core Web framework being used (Struts2 or Spring MVC) are the cause of it.

最有可能是框架的使用或与框架无关的东西(后端处理,数据库查询等).

Most likely it's going to be the usage of the framework, or something unrelated to it (backend processing, database queries,....).

如果您的应用程序不存在性能问题,那么用Spring MVC替换Struts之类的技术组件不会对其产生影响.这两个框架都没有重大问题,也没有在生产环境中使用,而没有已知的性能问题.

If your application doesn't have performance issues, replacing a technical component like Struts with Spring MVC will not influence it. Neither frameworks have major issues and are used in production environments without known performance issues.

切换到另一个框架的决定应基于其他因素(支持模型,社区支持,该框架提供的功能,战略架构一致性等).

The decision to switching to another framework should be based on other factors (support model, community support, functionalities offered by the framework, strategic architectural alignment,....)

这篇关于用Spring MVC替换Struts2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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