Play框架和Java版本 [英] Play framework and Java version
问题描述
我想知道 Play 框架版本(我的 Java 应用程序)与我的应用程序的 Java 版本之间是否存在任何联系?
I would like to know if there is any connection between the play framework version (of my java app) to the java version of my app?
例如:如果我使用 play 2.2.1 并且我的电脑上有 java8.我可以在我的代码中使用 java8 的东西吗?
Example: if I use play 2.2.1 and has java8 on my computer. Can I use java8 stuff in my code?
如果有连接.java8的第一个play版本是什么?
If there is a connection. What is the first play version that works with java8?
谢谢新
推荐答案
The Play 2.3.x 是第一个提到 Java 8 的版本,见这里
The Play 2.3.x is first version that mentions Java 8, see here
今天早上我和我的同事交谈,他发现使用 Java 8 运行 2.1.x 存在一些问题,对他来说幸运的是 - 他可以使用较低的 Java 运行他的项目.
Today morning I was talking with colleague of mine who found running 2.1.x some kind of problematic with Java 8, fortunately for him - he can run his project with lower Java.
恐怕您在 2.2.x 中也会遇到一些问题,最好的选择是创建小项目并针对 2.2.1 或更好地测试 Java 8 功能 - 将应用的 Play 版本提升到 2.3.x,这是迁移教程
I'm afraid, that you can meet some problems with 2.2.x as well, the good option is to create small projects and test the Java 8 features against 2.2.1, or better - rise the app's Play version to 2.3.x, here's the migration tutorial
这篇关于Play框架和Java版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!