可以从 spring 2.5 迁移到 spring 3.0 吗?
我正在从事新工作,工作中的项目是 Spring 2.5(一些 portlet)。迁移到 Spring 3 有多难?
有一个定制的门户1.0(不知道这是否相关),我想知道我是否可以要求在spring 3中开发。
以前从未使用过spring并且想学习一些,但如果我可以就更好了获取最新版本。获得了《Spring in Action》第三版,并希望利用它
i'm at my new job and the projects at work are in spring 2.5 (some portlets). how hard is it to migrate to spring 3 ?
there is a customized portal 1.0 (don't know if this is relevant) and i was wondering if i could just ask to develop in spring 3.
never used spring before and want to learn some, but it would be nice if i could just go for the latest version. got spring in action 3rd edition and would like to make use of that
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
原则上,它应该是直接替代品。 Spring 3 中弃用了很多内容,并添加了大量新内容,但没有删除任何内容。
然而,有一些小错误修复,并且您的代码可能无意中依赖于错误行为,因此可能需要进行一些小的调整,但没有什么比这更糟糕的了。
除此之外,最大的区别是 Spring 3 需要 Java5+。我假设你没有陷入 1.4 的困境:)
It principle, it should be a drop-in replacement. There's a bunch of stuff that was deprecated in Spring 3, and huge amount of new stuff added, but nothing was removed.
However, there were a bunch of minor bug fixes, and your code may be unwittingly relying on the buggy behaviour, so some minor adjustments may be necessary, but nothing any worse than that.
Other than that, the big difference is that Spring 3 requires Java5+. I'm assuming you're not stuck on 1.4 :)