NutzCN Logo
问答 代码生成器生成了一个比较简单的功能,分配给用户之后,没有权限。
发布于 2537天前 作者 hexy1989 1928 次浏览 复制 上一个帖子 下一个帖子
标签:

我用代码生成器生成了一个比较简单的功能。参照其它菜单配置的权限,也分配给了用户。但是这个菜单目前一直是报没有权限,已经仔细对比过,跟其它的菜单配置的没有区别。

[DEBUG] 2018-01-11 16:45:55,259 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/sys/test : SysTestController.index(SysTestController.java:33)
[DEBUG] 2018-01-11 16:45:55,259 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-01-11 16:45:55,259 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-01-11 16:45:55,260 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-01-11 16:45:55,260 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'sysTestController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysTestController>
[DEBUG] 2018-01-11 16:45:55,262 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/sys/test 2ms
[DEBUG] 2018-01-11 16:45:55,269 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/sys/test : SysTestController.index(SysTestController.java:33)
[DEBUG] 2018-01-11 16:45:55,269 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-01-11 16:45:55,269 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-01-11 16:45:55,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-01-11 16:45:55,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'sysTestController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysTestController>
[DEBUG] 2018-01-11 16:45:55,271 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/sys/test 2ms
[DEBUG] 2018-01-11 16:45:55,276 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/login/noPermission : SysLoginController.noPermission(SysLoginController.java:88)
[DEBUG] 2018-01-11 16:45:55,276 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-01-11 16:45:55,276 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-01-11 16:45:55,277 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-01-11 16:45:55,277 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'sysLoginController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysLoginController>
[DEBUG] 2018-01-11 16:45:55,278 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/login/noPermission 2ms
[DEBUG] 2018-01-11 16:45:55,444 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/home/path : SysHomeController.path(SysHomeController.java:65)
[DEBUG] 2018-01-11 16:45:55,444 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-01-11 16:45:55,444 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-01-11 16:45:55,445 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-01-11 16:45:55,445 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:164) - Get 'sysHomeController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysHomeController>
[DEBUG] 2018-01-11 16:45:55,447 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu  WHERE href IN (?,?,?) ORDER BY href DESC, path DESC   LIMIT 1 OFFSET 0 
    |                            1 |               2 |         3 |
    |------------------------------|-----------------|-----------|
    | /platform/login/noPermission | /platform/login | /platform |
  For example:> "SELECT * FROM sys_menu  WHERE href IN ('/platform/login/noPermission','/platform/login','/platform') ORDER BY href DESC, path DESC   LIMIT 1 OFFSET 0 "
[DEBUG] 2018-01-11 16:45:55,452 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/home/path 8ms

10 回复

由于不能上传图片,所以无法把对比的图片贴上来。

系统--角色管理--分配用户,分配菜单--退出登录--重新登录

我是这么做的。

同样的操作,我在3.X上是可以正常访问的。但是现在在4.X上是不能的,我也纠结了一下午了。

redis清空一下?或者ehcache文件夹删除下

我没有开启redis和ehcache,我也已经清空各种缓存了。也rebuild了。

有时候是写错单词了

如果写错单词了,那3.X上应该也不能用。

@Wizzercn 看来打印点日志比较好哦

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