java.lang.NullPointerException
at com.jfinal.plugin.activerecord.Model.find(Model.java:457)
at com.jfinal.plugin.activerecord.Model.findFirst(Model.java:484)
at org.aish.orm.model.SysUser.getByName(SysUser.java:47)
at org.aish.admin.controller.IndexController.login(IndexController.java:38)
---------------------------------------------------------------
System.out.println("===IndexController================"+username);
SysUser user = SysUser.dao.getByName(username);显示这行报错jfinal用的1.9
*/
public M findFirst(String sql, Object... paras) {
List<M> result = find(sql, paras);
return result.size() > 0 ? result.get(0) : null;
}
哪里错了???
项目:JFinal