我建立菜单分配权限后,用代码生成器生成器生成代码,总是说我没有访问权限。。。这是代码生成的信息
"C:\Program Files\Java\jdk1.8.0_181\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:7660,suspend=y,server=n -javaagent:C:\Users\hao\.IntelliJIdea2018.1\system\captureAgent\debugger-agent.jar=file:/C:/Users/hao/AppData/Local/Temp/capture1011.props -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_181\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar;C:\Users\hao\.m2\repository\org\nutz\nutz\1.r.66-SNAPSHOT\nutz-1.r.66-20180611.015908-74.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-plugins-daocache\1.r.66-SNAPSHOT\nutz-plugins-daocache-1.r.66-20180614.031905-54.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-plugins-cache\1.r.66-SNAPSHOT\nutz-plugins-cache-1.r.66-20180614.031855-60.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-integration-quartz\1.r.66-SNAPSHOT\nutz-integration-quartz-1.r.66-20180614.031851-60.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-integration-jedis\1.r.66-SNAPSHOT\nutz-integration-jedis-1.r.66-20180614.031845-61.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-plugins-wkcache\1.r.66-SNAPSHOT\nutz-plugins-wkcache-1.r.66-20180614.031939-53.jar;C:\Users\hao\.m2\repository\org\nutz\nutzwx\1.r.66-SNAPSHOT\nutzwx-1.r.66-20180514.124924-13.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-plugins-views\1.r.66-SNAPSHOT\nutz-plugins-views-1.r.66-20180614.031937-53.jar;C:\Users\hao\.m2\repository\com\vdurmont\emoji-java\4.0.0\emoji-java-4.0.0.jar;C:\Users\hao\.m2\repository\org\quartz-scheduler\quartz\2.2.3\quartz-2.2.3.jar;C:\Users\hao\.m2\repository\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-web\1.4.0\shiro-web-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-core\1.4.0\shiro-core-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-lang\1.4.0\shiro-lang-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-cache\1.4.0\shiro-cache-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-crypto-hash\1.4.0\shiro-crypto-hash-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-crypto-core\1.4.0\shiro-crypto-core-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-crypto-cipher\1.4.0\shiro-crypto-cipher-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-config-core\1.4.0\shiro-config-core-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-config-ogdl\1.4.0\shiro-config-ogdl-1.4.0.jar;C:\Users\hao\.m2\repository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-event\1.4.0\shiro-event-1.4.0.jar;C:\Users\hao\.m2\repository\org\apache\shiro\shiro-ehcache\1.4.0\shiro-ehcache-1.4.0.jar;C:\Users\hao\.m2\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;C:\Users\hao\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\hao\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\hao\.m2\repository\com\alibaba\druid\1.1.9\druid-1.1.9.jar;C:\Users\hao\.m2\repository\mysql\mysql-connector-java\5.1.45\mysql-connector-java-5.1.45.jar;C:\Users\hao\.m2\repository\net\sourceforge\jtds\jtds\1.3.1\jtds-1.3.1.jar;C:\Users\hao\.m2\repository\com\google\zxing\javase\3.2.1\javase-3.2.1.jar;C:\Users\hao\.m2\repository\com\google\zxing\core\3.2.1\core-3.2.1.jar;C:\Users\hao\.m2\repository\com\beust\jcommander\1.48\jcommander-1.48.jar;C:\Users\hao\.m2\repository\net\sf\ehcache\ehcache\2.10.4\ehcache-2.10.4.jar;C:\Users\hao\.m2\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;C:\Users\hao\.m2\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;C:\Users\hao\.m2\repository\org\apache\commons\commons-email\1.4\commons-email-1.4.jar;C:\Users\hao\.m2\repository\com\sun\mail\javax.mail\1.5.5\javax.mail-1.5.5.jar;C:\Users\hao\.m2\repository\javax\activation\activation\1.1.1\activation-1.1.1.jar;C:\Users\hao\.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;C:\Users\hao\.m2\repository\commons-beanutils\commons-beanutils-core\1.8.3\commons-beanutils-core-1.8.3.jar;C:\Users\hao\.m2\repository\com\ibeetl\beetl\2.7.27\beetl-2.7.27.jar;C:\Users\hao\.m2\repository\org\antlr\antlr4-runtime\4.2\antlr4-runtime-4.2.jar;C:\Users\hao\.m2\repository\org\abego\treelayout\org.abego.treelayout.core\1.0.1\org.abego.treelayout.core-1.0.1.jar;C:\Users\hao\.m2\repository\org\antlr\antlr4-annotations\4.2\antlr4-annotations-4.2.jar;C:\Users\hao\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\hao\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\hao\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Users\hao\.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar;C:\Users\hao\.m2\repository\org\brickred\socialauth\4.12\socialauth-4.12.jar;C:\Users\hao\.m2\repository\org\json\json\20160212\json-20160212.jar;C:\Users\hao\.m2\repository\io\jsonwebtoken\jjwt\0.6.0\jjwt-0.6.0.jar;C:\Users\hao\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.8.1\jackson-databind-2.8.1.jar;C:\Users\hao\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;C:\Users\hao\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.8.1\jackson-core-2.8.1.jar;C:\Users\hao\.m2\repository\com\rabbitmq\amqp-client\4.0.0\amqp-client-4.0.0.jar;C:\Users\hao\.m2\repository\org\nutz\nutz-integration-rabbitmq\1.r.66-SNAPSHOT\nutz-integration-rabbitmq-1.r.66-20180614.031853-60.jar;C:\Users\hao\.m2\repository\bouncycastle\bcprov-jdk16\140\bcprov-jdk16-140.jar;C:\Users\hao\.m2\repository\cn\wizzer\wk-code-generator\4.0.1-SNAPSHOT\wk-code-generator-4.0.1-20180309.063827-16.jar;C:\Users\hao\.m2\repository\org\atteo\evo-inflector\1.0.1\evo-inflector-1.0.1.jar;C:\Users\hao\.m2\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;C:\Users\hao\.m2\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2018.1\lib\idea_rt.jar" cn.wizzer.commons.code.Generator -i Cust_zjk -u /platform/cust -b wk-app/wk-web -o D:/Java/workspace-idea/NutzWk/wk-app/wk-web -p cn.wizzer.app.cust -f -v index_add_detail_edit_ -mod cn.wizzer.app.cust.modules.models -ctr cn.wizzer.app.web.modules.controllers.platform.cust -sev cn.wizzer.app.cust.modules.services controller service locale view
Connected to the target VM, address: '127.0.0.1:7660', transport: 'socket'
[DEBUG] 15:32:29.588 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=88 time use 242ms
[DEBUG] 15:32:29.625 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( code/code.json ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 15:32:29.626 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [code/code.json]
[DEBUG] 15:32:29.716 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 3 bean define from path=[code/code.json] --> [conf, dao, dataSource]
[INFO ] 15:32:29.780 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:130) - ... NutIoc init complete
[DEBUG] 15:32:29.930 cn.wizzer.commons.code.EntityDescLoader.loadTables(EntityDescLoader.java:39) - output dir = D:\Java\workspace-idea\NutzWk\wk-app\wk-web\target\classes\cn\wizzer\app\cust\modules\models
[DEBUG] 15:32:30.063 cn.wizzer.commons.code.Generator.main(Generator.java:201) - generate cust_zjk ...
[DEBUG] 15:32:30.065 cn.wizzer.commons.code.Generator.main(Generator.java:244) - outputDir::D:/Java/workspace-idea/NutzWk/wk-app/wk-web/src/main
[DEBUG] 15:32:30.065 cn.wizzer.commons.code.Generator.main(Generator.java:246) - generate CustZjkService.java
[DEBUG] 15:32:30.426 cn.wizzer.commons.code.Generator.main(Generator.java:244) - outputDir::D:/Java/workspace-idea/NutzWk/wk-app/wk-web/src/main
[DEBUG] 15:32:30.426 cn.wizzer.commons.code.Generator.main(Generator.java:246) - generate CustZjkServiceImpl.java
[DEBUG] 15:32:30.462 cn.wizzer.commons.code.Generator.main(Generator.java:244) - outputDir::D:/Java/workspace-idea/NutzWk/wk-app/wk-web/src/main
[DEBUG] 15:32:30.463 cn.wizzer.commons.code.Generator.main(Generator.java:246) - generate CustZjkController.java
[DEBUG] 15:32:30.522 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:index.html
[DEBUG] 15:32:30.633 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:add.html
[DEBUG] 15:32:30.738 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:detail.html
[DEBUG] 15:32:30.938 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:edit.html
[DEBUG] 15:32:31.108 cn.wizzer.commons.code.Generator.generateLocales(Generator.java:284) - generate html:zjk.properties
[DEBUG] 15:32:31.136 cn.wizzer.commons.code.Generator.main(Generator.java:201) - generate Cust_zjk ...
[DEBUG] 15:32:31.137 cn.wizzer.commons.code.Generator.main(Generator.java:244) - outputDir::D:/Java/workspace-idea/NutzWk/wk-app/wk-web/src/main
[DEBUG] 15:32:31.137 cn.wizzer.commons.code.Generator.main(Generator.java:246) - generate CustZjkService.java
[DEBUG] 15:32:31.164 cn.wizzer.commons.code.Generator.main(Generator.java:244) - outputDir::D:/Java/workspace-idea/NutzWk/wk-app/wk-web/src/main
[DEBUG] 15:32:31.164 cn.wizzer.commons.code.Generator.main(Generator.java:246) - generate CustZjkServiceImpl.java
[DEBUG] 15:32:31.230 cn.wizzer.commons.code.Generator.main(Generator.java:244) - outputDir::D:/Java/workspace-idea/NutzWk/wk-app/wk-web/src/main
[DEBUG] 15:32:31.230 cn.wizzer.commons.code.Generator.main(Generator.java:246) - generate CustZjkController.java
[DEBUG] 15:32:31.302 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:index.html
[DEBUG] 15:32:31.429 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:add.html
[DEBUG] 15:32:31.523 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:detail.html
[DEBUG] 15:32:31.556 cn.wizzer.commons.code.Generator.generateViews(Generator.java:302) - generate html:edit.html
[DEBUG] 15:32:31.637 cn.wizzer.commons.code.Generator.generateLocales(Generator.java:284) - generate html:zjk.properties
[INFO ] 15:32:31.698 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:287) - org.nutz.ioc.impl.NutIoc@1431467659 is closing. startup date [18-08-20 15:32:29.734]
[INFO ] 15:32:31.698 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:301) - org.nutz.ioc.impl.NutIoc@1431467659 is deposed. startup date [18-08-20 15:32:29.734]
[DEBUG] 15:32:31.699 cn.wizzer.commons.code.Generator.main(Generator.java:252) - done!
Disconnected from the target VM, address: '127.0.0.1:7660', transport: 'socket'
Process finished with exit code 0
这是访问以后的信息
[DEBUG] 2018-08-20 15:39:06,719 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/home/left : SysHomeController.left(SysHomeController.java:40)
[DEBUG] 2018-08-20 15:39:06,721 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-08-20 15:39:06,722 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-08-20 15:39:06,723 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-08-20 15:39:06,724 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sysHomeController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysHomeController>
[DEBUG] 2018-08-20 15:39:06,725 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu WHERE href=? LIMIT 0, 1
| 1 |
|--------------------|
| /platform/cust/zjk |
For example:> "SELECT * FROM sys_menu WHERE href='/platform/cust/zjk' LIMIT 0, 1 "
[DEBUG] 2018-08-20 15:39:06,727 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/home/left 7ms
[DEBUG] 2018-08-20 15:39:06,733 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/cust/zjk : CustZjkController.index(CustZjkController.java:34)
[DEBUG] 2018-08-20 15:39:06,733 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-08-20 15:39:06,734 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-08-20 15:39:06,734 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-08-20 15:39:06,734 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'custZjkController'<class cn.wizzer.app.web.modules.controllers.platform.cust.CustZjkController>
[DEBUG] 2018-08-20 15:39:06,741 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/cust/zjk 8ms
[DEBUG] 2018-08-20 15:39:06,793 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/cust/zjk : CustZjkController.index(CustZjkController.java:34)
[DEBUG] 2018-08-20 15:39:06,795 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-08-20 15:39:06,795 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-08-20 15:39:06,795 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-08-20 15:39:06,796 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'custZjkController'<class cn.wizzer.app.web.modules.controllers.platform.cust.CustZjkController>
[DEBUG] 2018-08-20 15:39:06,798 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/cust/zjk 4ms
[DEBUG] 2018-08-20 15:39:06,808 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/login/noPermission : SysLoginController.noPermission(SysLoginController.java:88)
[DEBUG] 2018-08-20 15:39:06,810 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-08-20 15:39:06,811 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-08-20 15:39:06,811 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-08-20 15:39:06,812 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sysLoginController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysLoginController>
[DEBUG] 2018-08-20 15:39:06,831 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/login/noPermission 23ms
[DEBUG] 2018-08-20 15:39:07,835 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/home/path : SysHomeController.path(SysHomeController.java:65)
[DEBUG] 2018-08-20 15:39:07,836 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.wizzer.framework.util.ShiroUtil>
[DEBUG] 2018-08-20 15:39:07,836 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.wizzer.framework.util.DateUtil>
[DEBUG] 2018-08-20 15:39:07,836 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
[DEBUG] 2018-08-20 15:39:07,837 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sysHomeController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysHomeController>
[DEBUG] 2018-08-20 15:39:07,839 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 0, 1
| 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 0, 1 "
[DEBUG] 2018-08-20 15:39:07,840 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/home/path 4ms