问题
Is there any documentation on how to migrate from Play! 1.1 to Play! 2.0? I understand that I would need to rewrite the templates, but what additional steps would I need to perform to be up to date?
The app is written in Java with some jQuery with AJAX. I'm not using any NHibernate in it.
On a similar note, is the effort actually worth it? Or should I upgrade to 1.2 and not worry about 2.0?
回答1:
play 2 is not play1.2.5+, which means you don't get all the features you get in play1.2.4 and some new ones.
there are some important fundamental changes (from 1.2.x to 2.0) I am still trying to wrap my head around. I would suggest to head over the mailing list for detailed questions if docs are unclear.
now to address your specifics.
rewrite the templates
yes, you will need to do that. though, there are plans to support compatibility. no idea when it will be done though.
additional steps would I need to perform to be up to date?
- firstly, the project structure/setup/tools are different.
- secondly, serving requests is different. For isntance in play2, you return
RESULT
object. Have a look at the docs to get an idea. - thirdly, alot of modules are not available for 2.0. So if you rely on them, you will have to wait/write them yourself.
based on what I have seen, you would basically have to rewrite significant portions from 1.1 to 2.0.
You are better off upgrading to 1.2.4.
来源:https://stackoverflow.com/questions/9960045/what-are-the-steps-for-migrating-from-play-1-1-to-2-0