这是我的代码:
public static Result continents()
{
List<Continent> cont = Continent.find.all();
return ok(views.html.index.render(cont));
}
我收到错误:"render can not be applied in this (java util.list. <models)"
我做错了什么?
最佳答案
删除views.html。
。某些 IDE 尝试完成此路径或显示错误。我的 IDE IntelliJ IDEA 13 也遇到同样的问题,但它符合要求,没有错误。
关于java - Play Framework 2 渲染错误,util 列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22436155/