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