如何导入play.db.ebean.Model.Finder?

时间:2015-10-17 11:03:18

标签: playframework

如何导入play.db.ebean.Model.Finder?我正在使用Play框架。 this is the error 这里是FAQController.java所以我认为我必须导入play.db.Model.Finder,因为没有它,公共静态Finder无法工作。唯一的问题是如何导入?

1 个答案:

答案 0 :(得分:0)

错误消息中的类com.avaje.ebean.Model提示您使用Play 2.4。*。该版本已弃用play.db.ebean.Model - https://www.playframework.com/documentation/2.4.x/Migration24

您需要将play.db.ebean.Model.Finder替换为com.avaje.ebean.Model.Finder