简单的代码片段不言自明。
[error] Form<User> userForm = Form.form(User.class).bindFromRequest();
[error] ^
[error] symbol: method form()
[error] location: class Form
我检查了文档:http ://www.playframework.com/documentation/2.1.0/JavaForms
不明白这是怎么回事...
文档对此很清楚:
http://www.playframework.com/documentation/2.1.0/Migration
Java API 也很清楚:
http://www.playframework.com/documentation/api/2.1.0/java/play/data/Form.html#form(java.lang.Class)