简体   繁体   English

在不同版本的Play框架下开发和运行

[英]Develop and run under different versions of Play Framework

是否可以在Play Framework 1.2.x / 1.3.x下开发和测试应用程序,并在用Play Framework 2.xx编写的可投入生产的Web应用程序中运行它(例如,作为模块)?

No , it is not possible to run a Play 1.x application as module or similar under/within a Play 2.x project. ,无法在Play 2.x项目中/下将Play 1.x应用程序作为模块或类似程序运行。 Play 2.x was completely rewritten from scratch - you could say it is a complete different framework with the same concepts as Play 1.x. Play 2.x完全从头开始重写-您可以说它是一个完全不同的框架,具有与Play 1.x相同的概念。

However you could let the apps communicate with each other (eg via webservices, a message system, etc.) However I think thats not a really good solution. 但是,您可以让应用程序彼此通信(例如,通过Web服务,消息系统等)。但是,我认为这并不是一个很好的解决方案。

My recommendation is to just use the latest version of Play 2.x - Play 1.x is slowly dying, do not use it. 我的建议是只使用最新版本的Play 2.x-Play 1.x快要死了,请不要使用它。 Play 2 development is pushed forward whereas Play 1 hardly sees updates and new features. Play 2的开发被推进,而Play 1几乎看不到更新和新功能。 Also the Play 2 community is much more active. Play 2社区也更加活跃。 There are only one or two active committers to the Play 1 project - when they resign I guess no one will take care of the framework anymore. Play 1项目只有一两个活跃的提交者-当他们辞职时,我想没人会再照顾这个框架了。 The Play 1 mailing list is basically dead too. Play 1邮件列表基本上也已失效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM