NutzCN Logo
问答 我在nutzwk上面新增了一页面,并且在入口函数上面加了@RequiresAuthentication,为啥控制台一直停留在那个方法上
发布于 2801天前 作者 gitwqj 4029 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

2017-03-23 14:09:28,539 cn.wizzer.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/admin/platform/login 130ms
2017-03-23 14:09:28,546 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/platform/login : SysLoginController.Syslogin(SysLoginController.java:60)
2017-03-23 14:09:28,546 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class cn.wizzer.common.shiro.view.Permission>
2017-03-23 14:09:28,547 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class cn.wizzer.common.util.DateUtil>
2017-03-23 14:09:28,550 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.common.util.StringUtil>
2017-03-23 14:09:28,551 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysLoginController'<class cn.wizzer.modules.controllers.platform.sys.SysLoginController>
2017-03-23 14:09:28,551 cn.wizzer.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/admin/platform/login 5ms
2017-03-23 14:09:28,559 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/platform/login : SysLoginController.Syslogin(SysLoginController.java:60)
2017-03-23 14:09:28,559 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class cn.wizzer.common.shiro.view.Permission>
2017-03-23 14:09:28,560 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class cn.wizzer.common.util.DateUtil>
2017-03-23 14:09:28,560 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.common.util.StringUtil>
2017-03-23 14:09:28,560 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysLoginController'<class cn.wizzer.modules.controllers.platform.sys.SysLoginController>
2017-03-23 14:09:28,561 cn.wizzer.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/admin/platform/login 2ms
2017-03-23 14:09:28,569 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/platform/login : SysLoginController.Syslogin(SysLoginController.java:60)
2017-03-23 14:09:28,569 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class cn.wizzer.common.shiro.view.Permission>
2017-03-23 14:09:28,569 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class cn.wizzer.common.util.DateUtil>
2017-03-23 14:09:28,570 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.common.util.StringUtil>
2017-03-23 14:09:28,570 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysLoginController'<class cn.wizzer.modules.controllers.platform.sys.SysLoginController>
2017-03-23 14:09:28,571 cn.wizzer.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/admin/platform/login 2ms
2017-03-23 14:09:28,578 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/platform/login : SysLoginController.Syslogin(SysLoginController.java:60)
2017-03-23 14:09:28,578 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class cn.wizzer.common.shiro.view.Permission>
2017-03-23 14:09:28,579 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class cn.wizzer.common.util.DateUtil>
2017-03-23 14:09:28,579 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.common.util.StringUtil>
2017-03-23 14:09:28,579 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysLoginController'<class cn.wizzer.modules.controllers.platform.sys.SysLoginController>
2017-03-23 14:09:28,580 cn.wizzer.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/admin/platform/login 2ms
2017-03-23 14:09:28,587 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/platform/login : SysLoginController.Syslogin(SysLoginController.java:60)
2017-03-23 14:09:28,587 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class cn.wizzer.common.shiro.view.Permission>
2017-03-23 14:09:28,587 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class cn.wizzer.common.util.DateUtil>
2017-03-23 14:09:28,588 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.common.util.StringUtil>
2017-03-23 14:09:28,588 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysLoginController'<class cn.wizzer.modules.controllers.platform.sys.SysLoginController>
2017-03-23 14:09:28,588 cn.wizzer.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/admin/platform/login 1ms
2017-03-23 14:09:28,599 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/platform/login : SysLoginController.Syslogin(SysLoginController.java:60)
2017-03-23 14:09:28,599 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class cn.wizzer.common.shiro.view.Permission>
2017-03-23 14:09:28,600 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class cn.wizzer.common.util.DateUtil>
2017-03-23 14:09:28,602 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.common.util.StringUtil>

7 回复

循环跳到登录页面了?

不是,页面直接无法访问了

但你贴的日志显示的就是不停访问登录页面/login

这是页面路径:window.location.href = "${base!}/platform/login/Syslogin";
这是入口:
@IocBean
@At("/platform/login")
@Ok("json:{locked:'password|createAt',ignoreNull:true}")
public class SysLoginController {
@At("")
@Ok("beetl:/police/index.html")
@RequiresAuthentication
public void Syslogin(){
}

兽总,请给点解决方案

登录页面加shiro注解干啥

不是登录页面,是登录了之后的页面,想通过${base!}/platform/login/Syslogin跳转到/police/index.html,
现在的问题是我不用登录,就可以访问/police/index.html,所以我想加个验证是否登录

添加回复
请先登陆
回到顶部