playframework - 将Play框架2.0.3迁移到2.1.RC1

标签 playframework migrating

我尝试将Java项目从Play框架2.0.3迁移到2.1.RC1

我做了配置说明here

我可以使用没有错误的播放控制台,但是当我启动“ run”命令时,我得到了:

sbt.PlayExceptions$CompilationException: Compilation error[package org.apache.commons.lang does not exist]


有任何暗示吗?

编辑:

我在Eclispe中引用的库文件仍映射在/Library/play-2.0.3上
当我运行“ play eclipse”时,上面也有同样的错误,如何更新引用的库?

编辑2:

好的,我更新了我引用的库文件:我必须运行
“使用-source = true播放Eclipse”

无论如何我还是有错误,我不知道要去哪里...

最佳答案

好的,我终于明白了,让我们给出答案而不是删除问题,我想有人可能也有同样的问题。

对于Play Framework 2.1-RC1,lang包是新的released

所以,我需要使用包装


org.apache.commons.lang3


并转换以下方法:

 - StringEscapeUtils.escapeHtml        --->   StringEscapeUtils.escapeHtml4
 - StringEscapeUtils.escapeJavaScript  --->   StringEscapeUtils.escapeEcmaScript

关于playframework - 将Play框架2.0.3迁移到2.1.RC1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13690980/

相关文章:

playframework - 玩!框架 : HTTPS and HTTP at the same time

android - Firebase notification_key 发送通知

java - 如何知道该网站是否是通过移动设备访问的

magento - 从 Magento 多商店安装迁移一个商店

android - 将 GCM 迁移到 FirebaseCM : onMessageReceived() not called in foreground

java - 玩! Framework 2.0.3,i18n 错误,预期为 `=',但发现为 `-'

ssl - 如何在 play 2.0 应用程序中设置 ssl?

wordpress - 将 wordpress 安装移动到本地主机

c# - 在 C# 和 VB.NET 中传递参数

android-viewpager - ViewPager2 迁移后出现无效 ID 0x00000001 错误