从 Play 迁移的步骤是什么!1.1 到 2.0? [英] What are the steps for migrating from Play! 1.1 to 2.0?

查看:27
本文介绍了从 Play 迁移的步骤是什么!1.1 到 2.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何关于如何从 Play 迁移的文档!1.1 玩!2.0?我知道我需要重写模板,但是我需要执行哪些额外的步骤才能保持最新状态?

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?

该应用程序是用 Java 编写的,带有一些带有 AJAX 的 jQuery.我没有在其中使用任何 NHibernate.

The app is written in Java with some jQuery with AJAX. I'm not using any NHibernate in it.

同样,这种努力真的值得吗?还是我应该升级到 1.2 而不必担心 2.0?

On a similar note, is the effort actually worth it? Or should I upgrade to 1.2 and not worry about 2.0?

推荐答案

play 2 不是 play1.2.5+,这意味着您无法获得 play1.2.4 中获得的所有功能和一些新功能.

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.

有一些重要的根本性变化(从 1.2.x 到 2.0),我仍在努力思考.如果文档不清楚,我建议您查看邮件列表以获取详细问题.

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.

重写模板

是的,你需要这样做.不过,有计划支持兼容性.不知道什么时候能完成.

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?

  1. 首先,项目结构/设置/工具不同.
  2. 其次,服务请求是不同的.对于 play2 中的 istance,您返回 RESULT 对象.查看文档以获得一个想法.
  3. 第三,许多模块不适用于 2.0.因此,如果您依赖它们,您将不得不等待/自己编写它们.
  1. firstly, the project structure/setup/tools are different.
  2. secondly, serving requests is different. For isntance in play2, you return RESULT object. Have a look at the docs to get an idea.
  3. thirdly, alot of modules are not available for 2.0. So if you rely on them, you will have to wait/write them yourself.

根据我所看到的,您基本上必须将重要部分从 1.1 重写为 2.0.

based on what I have seen, you would basically have to rewrite significant portions from 1.1 to 2.0.

最好升级到 1.2.4.

You are better off upgrading to 1.2.4.

这篇关于从 Play 迁移的步骤是什么!1.1 到 2.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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