DBflute
一、
UsertblBhv usertblBhv = new UsertblBhv ();
Usertbl usertbl = new Usertbl();
public Class<?> doLogin() {
usertbl.setUserSerno(userSerno);
usertbl.setUserId(insUserId);
usertbl.setUserName(insUserName);
usertbl.setUserPwd(insUserPwd);
usertbl.setUserTele(insUserTele);
usertbl.setUserFax(insUserFax);
usertbl.setUserMp(insUserMp);
usertbl.setAuthCode("user");
usertbl.setNote(insNote);
usertbl.setDisplayOrder(1);
usertbl.setVersionNo(2);
usertbl.setDelFlag(null);
usertbl.setUpdUserid("2");
usertbl.setUpdUsername("2");
usertbl.setUpdDate(null);
usertblBhv.insert(usertbl);
}
报?Look! Read the message below. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Not found the auto set-upper of common column in the behavior! [Advice] Please confirm the definition of the set-upper at your component configuration of DBFlute. [Behavior] Behavior for usertbl [Attribute] behaviorCommandInvoker : null behaviorSelector : null commonColumnAutoSetupper : null * * * * * * * * * */
怎么破
二、
public String showUserName;
UsertblBhv usertblBhv = new UsertblBhv() ;
public Class<?> prerender() {
Usertbl usertbl = usertblBhv.selectByPKValueWithDeletedCheck (sessionDto.userInfoDto.userSerno);
showUserName = usertbl.getUserId();
return null;
}
报
空指针异常,help.
------解决方案--------------------哪里、什么时候报的,异常信息呢