为什么我登录成功以后页面没有正常跳转到web-inf/jsp/personal.jsp呢?
@At("/")
@Ok("jsp:jsp.personal")
public void index(){
}
为什么我登录成功以后页面没有正常跳转到web-inf/jsp/personal.jsp呢?
@At("/")
@Ok("jsp:jsp.personal")
public void index(){
}
就是想登陆以后跳转到personal.jsp,personal.jsp就是信息注册页
2017-07-28 10:23:53,760 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:40)
2017-07-28 10:23:53,766 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-07-28 10:23:53,766 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - >> Load definition name=userModule
2017-07-28 10:23:53,768 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(userModule) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2017-07-28 10:23:53,768 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - >> Make...'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-07-28 10:23:53,769 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class net.wendal.nutzbook.module.UserModule without AOP
2017-07-28 10:23:53,770 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'userModule' to [app]
2017-07-28 10:23:53,801 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2017-07-28 10:23:53,952 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT * FROM User WHERE name=? AND passwd=? LIMIT 0, 1
| 1 | 2 |
|-------|--------|
| admin | 123456 |
For example:> "SELECT * FROM User WHERE name='admin' AND passwd='123456' LIMIT 0, 1 "