Migrating from Struts2 to Spring MVC

前端 未结 4 1790
余生分开走
余生分开走 2020-12-17 05:39

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 al

相关标签:
4条回答
  • With Struts2 security vulnerabilities being exposed and reported often, this task takes on more importance.

    0 讨论(0)
  • 2020-12-17 06:23

    I have to ask: What advantages do you see with Spring MVC that aren't being fulfilled by Struts 2?
    If there's not at least a handful of "smoking hot" features, or the amount of time saved is more than enough to overcome the time taken for the migration in the first place then it's probably best to stick with what you have.

    0 讨论(0)
  • 2020-12-17 06:25

    You can do it slowly. Struts is a MVC framework. The rest of your application (business and data tiers) are classes which can be invoked by action classes. Struts is a plugin based architecture and it is easy for you to define a plugin in struts configuration file.

    Take a look at this link. This may help.

    0 讨论(0)
  • 2020-12-17 06:36

    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).

    0 讨论(0)
提交回复
热议问题