从Struts2迁移到Spring MVC [英] Migrating from Struts2 to Spring MVC

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

问题描述

场景:一个相当成熟的项目使用Struts2以及Spring和Hibernate.我说成熟是因为它已经进行了一段时间,并且已经编写了许多strut动作.

Scenario: A fairly mature project uses Struts2 and Spring and Hibernate. I say mature because it has been going on a for a while and there are many struts actions written already.

假设我们想从项目中删除Struts2,而是完全依赖Spring MVC,而无需重写整个项目.

Suppose we wanted to remove Struts2 from the project and instead depend entirely on Spring MVC without rewriting the entire project.

这是否应该被考虑? 那里有迁移指南吗? 有人曾经做过这个,想警告我吗?

Is this something that should even be considered? Are there any migration guides out there? Has anyone done this before and would like to warn me against it?

推荐答案

如果没有损坏,请不要修复.与不增加产品任何价值的迁移(肯定会引入一些错误)相比,您要做的事情可能更好.如果我是企业,我将永远不会购买这样的迁移(收益几乎为零).

If it ain't broke, don't fix it. You have very likely better things to do than a migration that won't add any value to the product (and will certainly introduce some bugs). If I were the business, I would never buy such a migration (with close to zero benefits).

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

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