从 Play 2.0.4 迁移到 Play 2.1.1 后,我收到以下错误:
[error] /home/xxx/project/app/controllers/Application.scala:489: type mismatch;
[error] found : play.api.data.Form[contents.Entry]
[error] required: play.data.Form[contents.Entry]
[error] Ok(views.html.shareKnowledge(contentForm, loadEntries(Option(request.user.id), Option(request.user.id), None, None), Map("deleteButton"->"show")))
HTML 模板中对应的行是
@(contentForm: Form[contents.Entry], entries: Array[contents.Entry], streamDisplayOptions: Map[String,String])
我只是通过了一个表格...
我阅读了http://www.playframework.com/documentation/2.1.0/Migration 但我仍然不知道如何解决它。