在我的模型中,我有
package models;
import play.*;
import play.data.validation.*;
import play.db.jpa.*;
import play.libs.*;
import com.google.gson.JsonObject;
import javax.persistence.*;
import java.util.*;
import play.mvc.*;
public class User extends Model {
public static void facebookOAuthCallback(JsonObject data){
String email = data.get("email").getAsString();
System.out.println(email);
if(email!=null){
Session session = new Session();
session.put("user", user.email);
}
}
}
当执行此操作操作时,它会使Session 无法解析为 type。我做错了什么:(
提前致谢