NutzCN Logo
问答 新建一个nutzboot项目,启动后访问http://127.0.0.1:8080/ 正常,但访问http://127.0.0.1:8080/time/now 出404错误
发布于 2287天前 作者 kmtaoyufei 2166 次浏览 复制 上一个帖子 下一个帖子
标签:

【新手入门】新建一个nutzboot项目,启动后访问http://127.0.0.1:8080/ 正常,但访问http://127.0.0.1:8080/time/now 出404错误,错误提示如下:
Request URL
http://127.0.0.1:8080/time/now
Server response
Code Details
404
Undocumented
Error: Not Found
Response headers
出现此问题,是哪里配置不对吗?

4 回复

选了什么呢?改过什么呢?日志发一下

一、选的有:
Jetty
Jdbc传统数据源
Nutz.Dao
ZBus
urule
二、demo生成后,代码也没改过,直接启动运行。
三、日志信息如下:
"C:\Program Files\Java\jdk1.8.0_162\bin\java" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\lib\idea_rt.jar=63625:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_162\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\rt.jar;C:\Users\kmtao\IdeaProjects\nutzbootdemo1\target\classes;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-starter-swagger\2.2.4\nutzboot-starter-swagger-2.2.4.jar;C:\Users\kmtao.m2\repository\io\swagger\swagger-servlet\1.5.18\swagger-servlet-1.5.18.jar;C:\Users\kmtao.m2\repository\io\swagger\swagger-core\1.5.18\swagger-core-1.5.18.jar;C:\Users\kmtao.m2\repository\org\apache\commons\commons-lang3\3.2.1\commons-lang3-3.2.1.jar;C:\Users\kmtao.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.3\jackson-annotations-2.9.3.jar;C:\Users\kmtao.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.3\jackson-databind-2.9.3.jar;C:\Users\kmtao.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.3\jackson-core-2.9.3.jar;C:\Users\kmtao.m2\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.9.3\jackson-dataformat-yaml-2.9.3.jar;C:\Users\kmtao.m2\repository\org\yaml\snakeyaml\1.18\snakeyaml-1.18.jar;C:\Users\kmtao.m2\repository\io\swagger\swagger-models\1.5.18\swagger-models-1.5.18.jar;C:\Users\kmtao.m2\repository\io\swagger\swagger-annotations\1.5.18\swagger-annotations-1.5.18.jar;C:\Users\kmtao.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\kmtao.m2\repository\org\reflections\reflections\0.9.11\reflections-0.9.11.jar;C:\Users\kmtao.m2\repository\org\javassist\javassist\3.22.0-GA\javassist-3.22.0-GA.jar;C:\Users\kmtao.m2\repository\com\google\guava\guava\20.0\guava-20.0.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-core\2.2.4\nutzboot-core-2.2.4.jar;C:\Users\kmtao.m2\repository\org\nutz\nutz\1.r.67-SNAPSHOT\nutz-1.r.67-20180914.083608-33.jar;C:\Users\kmtao.m2\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-starter-jdbc\2.2.4\nutzboot-starter-jdbc-2.2.4.jar;C:\Users\kmtao.m2\repository\com\alibaba\druid\1.1.10\druid-1.1.10.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-starter-nutz-dao\2.2.4\nutzboot-starter-nutz-dao-2.2.4.jar;C:\Users\kmtao.m2\repository\org\nutz\nutz-plugins-daocache\1.r.67-SNAPSHOT\nutz-plugins-daocache-1.r.67-20180918.135107-26.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-starter-urule\2.2.4\nutzboot-starter-urule-2.2.4.jar;C:\Users\kmtao.m2\repository\com\bstek\urule\urule-console\2.1.4\urule-console-2.1.4.jar;C:\Users\kmtao.m2\repository\com\bstek\urule\urule-core\2.1.4\urule-core-2.1.4.jar;C:\Users\kmtao.m2\repository\org\antlr\antlr4-runtime\4.5\antlr4-runtime-4.5.jar;C:\Users\kmtao.m2\repository\org\abego\treelayout\org.abego.treelayout.core\1.0.1\org.abego.treelayout.core-1.0.1.jar;C:\Users\kmtao.m2\repository\org\springframework\spring-web\4.3.18.RELEASE\spring-web-4.3.18.RELEASE.jar;C:\Users\kmtao.m2\repository\org\springframework\spring-aop\4.3.18.RELEASE\spring-aop-4.3.18.RELEASE.jar;C:\Users\kmtao.m2\repository\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar;C:\Users\kmtao.m2\repository\org\springframework\spring-context\4.3.18.RELEASE\spring-context-4.3.18.RELEASE.jar;C:\Users\kmtao.m2\repository\org\springframework\spring-expression\4.3.18.RELEASE\spring-expression-4.3.18.RELEASE.jar;C:\Users\kmtao.m2\repository\org\springframework\spring-core\4.3.18.RELEASE\spring-core-4.3.18.RELEASE.jar;C:\Users\kmtao.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\kmtao.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\kmtao.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\kmtao.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users\kmtao.m2\repository\commons-beanutils\commons-beanutils\1.8.3\commons-beanutils-1.8.3.jar;C:\Users\kmtao.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.11\jackson-mapper-asl-1.9.11.jar;C:\Users\kmtao.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.11\jackson-core-asl-1.9.11.jar;C:\Users\kmtao.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\kmtao.m2\repository\org\apache\jackrabbit\jackrabbit-core\2.13.3\jackrabbit-core-2.13.3.jar;C:\Users\kmtao.m2\repository\concurrent\concurrent\1.3.4\concurrent-1.3.4.jar;C:\Users\kmtao.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\kmtao.m2\repository\commons-dbcp\commons-dbcp\1.3\commons-dbcp-1.3.jar;C:\Users\kmtao.m2\repository\commons-pool\commons-pool\1.5.4\commons-pool-1.5.4.jar;C:\Users\kmtao.m2\repository\org\apache\jackrabbit\jackrabbit-api\2.13.3\jackrabbit-api-2.13.3.jar;C:\Users\kmtao.m2\repository\org\apache\jackrabbit\jackrabbit-jcr-commons\2.13.3\jackrabbit-jcr-commons-2.13.3.jar;C:\Users\kmtao.m2\repository\org\apache\jackrabbit\jackrabbit-data\2.13.3\jackrabbit-data-2.13.3.jar;C:\Users\kmtao.m2\repository\org\apache\jackrabbit\jackrabbit-spi-commons\2.13.3\jackrabbit-spi-commons-2.13.3.jar;C:\Users\kmtao.m2\repository\org\apache\jackrabbit\jackrabbit-spi\2.13.3\jackrabbit-spi-2.13.3.jar;C:\Users\kmtao.m2\repository\org\apache\tika\tika-core\1.7\tika-core-1.7.jar;C:\Users\kmtao.m2\repository\org\apache\lucene\lucene-core\3.6.0\lucene-core-3.6.0.jar;C:\Users\kmtao.m2\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;C:\Users\kmtao.m2\repository\javax\jcr\jcr\2.0\jcr-2.0.jar;C:\Users\kmtao.m2\repository\commons-fileupload\commons-fileupload\1.3.2\commons-fileupload-1.3.2.jar;C:\Users\kmtao.m2\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;C:\Users\kmtao.m2\repository\org\apache\poi\poi-ooxml\3.16\poi-ooxml-3.16.jar;C:\Users\kmtao.m2\repository\org\apache\poi\poi\3.16\poi-3.16.jar;C:\Users\kmtao.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\kmtao.m2\repository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;C:\Users\kmtao.m2\repository\org\apache\poi\poi-ooxml-schemas\3.16\poi-ooxml-schemas-3.16.jar;C:\Users\kmtao.m2\repository\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;C:\Users\kmtao.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;C:\Users\kmtao.m2\repository\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;C:\Users\kmtao.m2\repository\org\nutz\nutz-integration-spring\1.r.67-SNAPSHOT\nutz-integration-spring-1.r.67-20180918.135101-26.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-spring4\2.2.4\nutzboot-spring4-2.2.4.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-starter-jetty\2.2.4\nutzboot-starter-jetty-2.2.4.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-servlets\9.4.11.v20180605\jetty-servlets-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-continuation\9.4.11.v20180605\jetty-continuation-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-http\9.4.11.v20180605\jetty-http-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-util\9.4.11.v20180605\jetty-util-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-io\9.4.11.v20180605\jetty-io-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-webapp\9.4.11.v20180605\jetty-webapp-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-xml\9.4.11.v20180605\jetty-xml-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-servlet\9.4.11.v20180605\jetty-servlet-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-security\9.4.11.v20180605\jetty-security-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-server\9.4.11.v20180605\jetty-server-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\websocket-server\9.4.11.v20180605\websocket-server-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\websocket-common\9.4.11.v20180605\websocket-common-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\websocket-api\9.4.11.v20180605\websocket-api-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\websocket-client\9.4.11.v20180605\websocket-client-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-client\9.4.11.v20180605\jetty-client-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\websocket-servlet\9.4.11.v20180605\websocket-servlet-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\javax-websocket-server-impl\9.4.11.v20180605\javax-websocket-server-impl-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-annotations\9.4.11.v20180605\jetty-annotations-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\jetty-plus\9.4.11.v20180605\jetty-plus-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\org\ow2\asm\asm-commons\6.1.1\asm-commons-6.1.1.jar;C:\Users\kmtao.m2\repository\org\ow2\asm\asm-tree\6.1.1\asm-tree-6.1.1.jar;C:\Users\kmtao.m2\repository\org\ow2\asm\asm-analysis\6.1.1\asm-analysis-6.1.1.jar;C:\Users\kmtao.m2\repository\org\eclipse\jetty\websocket\javax-websocket-client-impl\9.4.11.v20180605\javax-websocket-client-impl-9.4.11.v20180605.jar;C:\Users\kmtao.m2\repository\javax\websocket\javax.websocket-client-api\1.0\javax.websocket-client-api-1.0.jar;C:\Users\kmtao.m2\repository\javax\websocket\javax.websocket-api\1.0\javax.websocket-api-1.0.jar;C:\Users\kmtao.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\kmtao.m2\repository\org\nutz\nutz-plugins-websocket\1.r.67-SNAPSHOT\nutz-plugins-websocket-1.r.67-20180918.135139-25.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-servlet3\2.2.4\nutzboot-servlet3-2.2.4.jar;C:\Users\kmtao.m2\repository\javax\annotation\javax.annotation-api\1.2\javax.annotation-api-1.2.jar;C:\Users\kmtao.m2\repository\org\ow2\asm\asm\6.1.1\asm-6.1.1.jar;C:\Users\kmtao.m2\repository\org\nutz\nutzboot-starter-zbus\2.2.4\nutzboot-starter-zbus-2.2.4.jar;C:\Users\kmtao.m2\repository\org\nutz\nutz-integration-zbus\1.r.67-SNAPSHOT\nutz-integration-zbus-1.r.67-20180918.135102-26.jar;C:\Users\kmtao.m2\repository\io\zbus\zbus\0.11.5\zbus-0.11.5.jar;C:\Users\kmtao.m2\repository\io\netty\netty-all\4.0.51.Final\netty-all-4.0.51.Final.jar;C:\Users\kmtao.m2\repository\com\alibaba\fastjson\1.2.24\fastjson-1.2.24.jar;C:\Users\kmtao.m2\repository\com\h2database\h2\1.4.196\h2-1.4.196.jar;C:\Users\kmtao.m2\repository\mysql\mysql-connector-java\5.1.44\mysql-connector-java-5.1.44.jar;C:\Users\kmtao.m2\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;C:\Users\kmtao.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\kmtao.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar" io.nutz.demo.MainLauncher
[INFO ] 14:14:52.524 org.nutz.boot.banner.SimpleBannerPrinter.printBanner(SimpleBannerPrinter.java:34) -
_ _ ______ _
| \ | || ___ \ ______ ______ ______ ______ ______| \ \
| | || |_/ / |
____|______|______|______|______| |\ \
| . ` || ___ \ ______ ______ ______ ______ ______| | > >
| |\ || |_/ / |______|______|______|______|______| |/ /
_| _/____/ |_/_/

:: Nutz Boot :: (2.3-SNAPSHOT)

[INFO ] 14:14:53.957 org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:51) - > scan 'io.nutz.demo'
[INFO ] 14:14:53.998 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'mainLauncher ' - io.nutz.demo.MainLauncher
[INFO ] 14:14:54.061 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'timeModule ' - io.nutz.demo.module.TimeModule
[INFO ] 14:14:54.111 org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:51) - > scan 'org.nutz.boot.starter'
[INFO ] 14:14:54.230 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'swaggerServletStarter ' - org.nutz.boot.starter.swagger.SwaggerServletStarter
[INFO ] 14:14:54.249 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'dataSourceStarter ' - org.nutz.boot.starter.jdbc.DataSourceStarter
[INFO ] 14:14:54.254 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'druidWebStatFilterStarter ' - org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter
[INFO ] 14:14:54.260 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'druidWebStatServletStarter ' - org.nutz.boot.starter.jdbc.DruidWebStatServletStarter
[INFO ] 14:14:54.263 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'nutDaoStarter ' - org.nutz.boot.starter.nutz.dao.NutDaoStarter
[INFO ] 14:14:54.299 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'uruleServletStarter ' - org.nutz.boot.starter.urule.UruleServletStarter
[INFO ] 14:14:54.302 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'uruleSpringEnvStarter ' - org.nutz.boot.starter.urule.UruleSpringEnvStarter
[INFO ] 14:14:54.334 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'jettyStarter ' - org.nutz.boot.starter.jetty.JettyStarter
[INFO ] 14:14:54.380 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'nbServletContextListener ' - org.nutz.boot.starter.servlet3.NbServletContextListener
[INFO ] 14:14:54.381 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'zbusStarter ' - org.nutz.boot.starter.zbus.ZbusStarter
[INFO ] 14:14:54.613 org.nutz.boot.NbApp.prepare(NbApp.java:289) - Configure Manual:
|id |key |required |Possible Values |Default |Description | starters|
|----|----------------------------------------|----------|--------------------|----------|--------------------|----------------------------------------|
|0 |druid.web.filter.exclusions |no | | |需要排除的路径 |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|1 |druid.web.filter.principalCookieName |no | | |用户权限信息的cookie属性名称 |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|2 |druid.web.filter.principalSessionName |no | | |用户权限信息的session属性名称 |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|3 |druid.web.filter.profileEnable |no | | |是否开启性能监控 |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|4 |druid.web.filter.realIpHeader |no | | |Header中ReadIp对应的key |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|5 |druid.web.filter.sessionStatEnable |no | |true |是否开启session状态监控 |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|6 |druid.web.filter.sessionStatMaxCount |no | | |session最大状态数量 |org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter|
|7 |druid.web.servlet.allow |no | | |允许访问的ip列表 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|8 |druid.web.servlet.deny |no | | |禁止访问的ip列表 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|9 |druid.web.servlet.jmxPassword |no | | |JMX的密码 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|10 |druid.web.servlet.jmxUrl |no | | |读取JMX信息的URL |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|11 |druid.web.servlet.jmxUsername |no | | |JMX的用户名 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|12 |druid.web.servlet.loginPassword |no | |随机值,打印在日志中|访问monitor页面的密码 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|13 |druid.web.servlet.loginUsername |no | |driud |访问monitor页面的用户名 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|14 |druid.web.servlet.resetEnable |no | |true |是否允许重置统计结果 |org.nutz.boot.starter.jdbc.DruidWebStatServletStarter|
|15 |jdbc.password |no | | |数据库密码 |org.nutz.boot.starter.jdbc.DataSourceStarter|
|16 |jdbc.type |no |druid,simple,hikari |druid |连接池类型 |org.nutz.boot.starter.jdbc.DataSourceStarter|
|17 |jdbc.url |yes | | |JDBC URL |org.nutz.boot.starter.jdbc.DataSourceStarter|
|18 |jdbc.username |no | | |数据库用户名 |org.nutz.boot.starter.jdbc.DataSourceStarter|
|19 |jetty.contextPath |no | |/ |上下文路径 |org.nutz.boot.starter.jetty.JettyStarter|
|20 |jetty.gzip.enable |no | |false |是否启用gzip |org.nutz.boot.starter.jetty.JettyStarter|
|21 |jetty.gzip.level |no | |-1 |gzip压缩级别 |org.nutz.boot.starter.jetty.JettyStarter|
|22 |jetty.gzip.minContentSize |no | |512 |gzip压缩最小触发大小 |org.nutz.boot.starter.jetty.JettyStarter|
|23 |jetty.host |no | |0.0.0.0 |监听的ip地址 |org.nutz.boot.starter.jetty.JettyStarter|
|24 |jetty.http.idleTimeout |no | |300000 |空闲时间,单位毫秒 |org.nutz.boot.starter.jetty.JettyStarter|
|25 |jetty.httpConfig.blockingTimeout |no | |-1 |阻塞超时 |org.nutz.boot.starter.jetty.JettyStarter|
|26 |jetty.httpConfig.headerCacheSize |no | |8192 |头部缓冲区大小 |org.nutz.boot.starter.jetty.JettyStarter|
|27 |jetty.httpConfig.maxErrorDispatches |no | |10 |最大错误重定向次数 |org.nutz.boot.starter.jetty.JettyStarter|
|28 |jetty.httpConfig.outputAggregationSize |no | |8192 |输出聚合大小 |org.nutz.boot.starter.jetty.JettyStarter|
|29 |jetty.httpConfig.outputBufferSize |no | |32768 |输出缓冲区大小 |org.nutz.boot.starter.jetty.JettyStarter|
|30 |jetty.httpConfig.persistentConnectionsEnabled|no | |true |是否启用持久化连接 |org.nutz.boot.starter.jetty.JettyStarter|
|31 |jetty.httpConfig.requestHeaderSize |no | |8192 |请求的头部最大值 |org.nutz.boot.starter.jetty.JettyStarter|
|32 |jetty.httpConfig.responseHeaderSize |no | |8192 |响应的头部最大值 |org.nutz.boot.starter.jetty.JettyStarter|
|33 |jetty.httpConfig.securePort |no | | |安全协议的端口,例如8443 |org.nutz.boot.starter.jetty.JettyStarter|
|34 |jetty.httpConfig.secureScheme |no | | |安全协议,例如https |org.nutz.boot.starter.jetty.JettyStarter|
|35 |jetty.httpConfig.sendDateHeader |no | |true |是否发送日期信息 |org.nutz.boot.starter.jetty.JettyStarter|
|36 |jetty.httpConfig.sendServerVersion |no | |true |是否发送jetty版本号 |org.nutz.boot.starter.jetty.JettyStarter|
|37 |jetty.maxFormContentSize |no | |1gb |表单最大尺寸 |org.nutz.boot.starter.jetty.JettyStarter|
|38 |jetty.page.404 |no | | |自定义404页面,同理,其他状态码也是支持的|org.nutz.boot.starter.jetty.JettyStarter|
|39 |jetty.page.java.lang.Throwable |no | | |自定义java.lang.Throwable页面,同理,其他异常也支持|org.nutz.boot.starter.jetty.JettyStarter|
|40 |jetty.port |no | |8080 |监听的端口 |org.nutz.boot.starter.jetty.JettyStarter|
|41 |jetty.staticPath |no | | |额外的静态文件路径 |org.nutz.boot.starter.jetty.JettyStarter|
|42 |jetty.staticPathLocal |no | | |静态文件所在的本地路径 |org.nutz.boot.starter.jetty.JettyStarter|
|43 |jetty.threadpool.idleTimeout |no | |60000 |线程池idleTimeout,单位毫秒 |org.nutz.boot.starter.jetty.JettyStarter|
|44 |jetty.threadpool.maxThreads |no | |500 |线程池最大线程数maxThreads |org.nutz.boot.starter.jetty.JettyStarter|
|45 |jetty.threadpool.minThreads |no | |200 |线程池最小线程数minThreads |org.nutz.boot.starter.jetty.JettyStarter|
|46 |jetty.welcome_files |no | |index.html,index.htm,index.do|WelcomeFile列表 |org.nutz.boot.starter.jetty.JettyStarter|
|47 |nutz.dao.interceptor.cache.cache4Null |no | |true |是否缓存null结果 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|48 |nutz.dao.interceptor.cache.debug |no | |false |打印daocache详细调试日志 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|49 |nutz.dao.interceptor.cache.enable |no | |false |是否使用daocache |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|50 |nutz.dao.interceptor.cache.enableWhenTrans|no | |false |事务内是否启用daocache |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|51 |nutz.dao.interceptor.cache.provider.ioc.name|no | |daoCacheProvider|daocache提供者DaoCacheProvider的IocBean名称|org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|52 |nutz.dao.interceptor.cache.provider.memory.cacheSize|no | | |daocache提供者MemoryDaoCacheProvider的默认缓存大小|org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|53 |nutz.dao.interceptor.cache.provider.type|no |memory,ehcache,jedis,ioc|memory |daocache提供者 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|54 |nutz.dao.interceptor.cache.table.names |no | | |需要缓存的表名称,英文逗号分隔 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|55 |nutz.dao.interceptor.cache.table.pattern|no | | |需要缓存的表名称的正则表达式 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|56 |nutz.dao.interceptor.log.enable |no | |true |是否打印dao的SQL日志 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|57 |nutz.dao.interceptor.time.enable |no | |false |是否打印dao的SQL耗时日志 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|58 |nutz.dao.sqls.path |no | |sqls/ |sql目录 |org.nutz.boot.starter.nutz.dao.NutDaoStarter|
|59 |swagger.enable |no | |true |是否启用swagger |org.nutz.boot.starter.swagger.SwaggerServletStarter|
|60 |urule.console.title |no | |URule Console|一个字符串,用来替代URule控制台页面的title|org.nutz.boot.starter.urule.UruleServletStarter|
|61 |urule.knowledgeUpdateCycle |no | |0 |用来指定客户端多久到服务端检查当前知识包有没有更新|org.nutz.boot.starter.urule.UruleServletStarter|
|62 |urule.repository.dir |yes | | |配置当前资源库存放目录 |org.nutz.boot.starter.urule.UruleServletStarter|
|63 |urule.repository.xml |no | | |在外部指定一个将资源库存储到数据库的配置文件|org.nutz.boot.starter.urule.UruleServletStarter|
|64 |urule.resporityServerUrl |no | | |客户端上配置的服务器地址 |org.nutz.boot.starter.urule.UruleServletStarter|
|65 |urule.welcomePage |no | | |一个URL,用于替换URule Console主界面第一次看到的工作区内容|org.nutz.boot.starter.urule.UruleServletStarter|
|66 |web.session.timeout |no | |30 |Session空闲时间,单位分钟 |org.nutz.boot.starter.jetty.JettyStarter|
[INFO ] 14:14:54.648 org.nutz.ioc.impl.NutIoc.(NutIoc.java:130) - ... NutIoc init complete
[INFO ] 14:14:54.664 org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:51) - > scan 'org.nutz.integration.zbus'
[INFO ] 14:14:54.689 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'zbus ' - org.nutz.integration.zbus.ZbusFactory
[INFO ] 14:14:54.692 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'zbusBrokerBean ' - org.nutz.integration.zbus.broker.ZbusBrokerBean
[INFO ] 14:14:54.701 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'zbus_invoker_factory ' - org.nutz.integration.zbus.rpc.ZbusClientBean
[INFO ] 14:14:54.724 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) - > add 'zbusServiceBean ' - org.nutz.integration.zbus.rpc.ZbusServiceBean
[INFO ] 14:14:55.091 org.eclipse.jetty.util.log.Log.initialized(Log.java:193) - Logging initialized @5420ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO ] 14:14:56.201 org.eclipse.jetty.server.Server.doStart(Server.java:374) - jetty-9.4.11.v20180605; built: 2018-06-05T18:24:03.829Z; git: d5fc0523cfa96bfebfbda19606cad384d772f04c; jvm 1.8.0_162-b12
[WARN ] 14:14:56.985 org.eclipse.jetty.annotations.AnnotationParser.asmVersion(AnnotationParser.java:95) - Unknown asm implementation version, assuming version 393216
[INFO ] 14:14:56.987 org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(AnnotationConfiguration.java:489) - Scanning elapsed time=1ms
[INFO ] 14:14:57.004 org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitServlet(StandardDescriptorProcessor.java:283) - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
[INFO ] 14:14:57.014 org.eclipse.jetty.server.handler.ContextHandler$Context.log(ContextHandler.java:2318) - No Spring WebApplicationInitializer types detected on classpath
[INFO ] 14:14:57.058 org.eclipse.jetty.server.session.DefaultSessionIdManager.doStart(DefaultSessionIdManager.java:365) - DefaultSessionIdManager workerName=node0
[INFO ] 14:14:57.059 org.eclipse.jetty.server.session.DefaultSessionIdManager.doStart(DefaultSessionIdManager.java:370) - No SessionScavenger set, using defaults
[INFO ] 14:14:57.070 org.eclipse.jetty.server.session.HouseKeeper.startScavenging(HouseKeeper.java:149) - node0 Scavenging every 600000ms
[INFO ] 14:14:57.684 org.nutz.boot.starter.jdbc.DruidWebStatServletStarter.getInitParameters(DruidWebStatServletStarter.java:73) - druid stat view random user=druid password=529ivm4pqmgrhoosmfgsbi6c82
[INFO ] 14:14:57.907 org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583) - Refreshing Root WebApplicationContext: startup date [Wed Sep 19 14:14:57 CST 2018]; root of context hierarchy
[INFO ] 14:14:58.232 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317) - Loading XML bean definitions from class path resource [urule-spring-context.xml] [INFO ] 14:14:58.630 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317) - Loading XML bean definitions from class path resource [META-INF/spring/nutzboot-spring-context.xml] [INFO ] 14:14:58.733 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317) - Loading XML bean definitions from class path resource [urule-console-context.xml] [INFO ] 14:14:58.803 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317) - Loading XML bean definitions from class path resource [urule-core-context.xml]
Load built in actions...
九月 19, 2018 2:15:00 下午 com.bstek.urule.console.repository.RepositoryBuilder initRepositoryDir
信息: Use "./urule.repo" as urule repository home directory.
[INFO ] 14:15:02.948 org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:258) - Starting repository...
[INFO ] 14:15:02.952 org.apache.jackrabbit.core.fs.local.LocalFileSystem.init(LocalFileSystem.java:166) - LocalFileSystem initialized at path .\urule.repo\repository
[INFO ] 14:15:03.185 org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadCustomNodeTypeDefs(NodeTypeRegistry.java:841) - no custom node type definitions found
[INFO ] 14:15:03.221 org.apache.jackrabbit.core.fs.local.LocalFileSystem.init(LocalFileSystem.java:166) - LocalFileSystem initialized at path .\urule.repo\version
[INFO ] 14:15:03.252 org.apache.jackrabbit.core.fs.local.LocalFileSystem.init(LocalFileSystem.java:166) - LocalFileSystem initialized at path .\urule.repo\version\blobs
[INFO ] 14:15:03.355 org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:2034) - initializing workspace 'default'...
[INFO ] 14:15:03.359 org.apache.jackrabbit.core.fs.local.LocalFileSystem.init(LocalFileSystem.java:166) - LocalFileSystem initialized at path .\urule.repo\workspaces\default
[INFO ] 14:15:03.367 org.apache.jackrabbit.core.fs.local.LocalFileSystem.init(LocalFileSystem.java:166) - LocalFileSystem initialized at path .\urule.repo\workspaces\default\blobs
[INFO ] 14:15:03.653 org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:2038) - workspace 'default' initialized
[INFO ] 14:15:03.670 org.apache.jackrabbit.core.RepositoryImpl.initSecurityManager(RepositoryImpl.java:454) - SecurityManager = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
[INFO ] 14:15:03.680 org.apache.jackrabbit.core.security.simple.SimpleSecurityManager.init(SimpleSecurityManager.java:137) - init: using Repository LoginModule configuration for uruleRepoSecurity
[INFO ] 14:15:03.701 org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:366) - Repository started (753ms)

_____ __________ _____ ________ ________________
__ / / /___ __ __ / / /___ / ___ ____/__|__ \
_ / / / __ /_/ /_ / / / __ / __ / ____/ /
/ /_/ / _ , / / // / _ /
_ /___ _ /
_
_/ /_/ |_| ____/ /_____//_____/ /____/
.....................................................................................................
. uRule, is a Chinese style rule engine licensed under the Apache License 2.0, .
. which is opensource, easy to use,high-performance, with browser-based-designer. .
.....................................................................................................

[INFO ] 14:15:06.635 org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:851) - Started o.e.j.w.WebAppContext@141e879d{/,[file:///C:/Users/kmtao/IdeaProjects/nutzbootdemo1/target/classes/static/, jar:file:/C:/Users/kmtao/.m2/repository/org/nutz/nutzboot-starter-swagger/2.2.4/nutzboot-starter-swagger-2.2.4.jar!/static/],AVAILABLE}
[INFO ] 14:15:06.694 org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:289) - Started ServerConnector@749ab7b4{HTTP/1.1,[http/1.1]}{192.168.18.4:8080}
[INFO ] 14:15:06.694 org.eclipse.jetty.server.Server.doStart(Server.java:411) - Started @17034ms
[INFO ] 14:15:06.704 org.nutz.boot.NbApp.execute(NbApp.java:214) - NB started : 15028ms

要把nutz-mvc加上

把nutz-mvc加上就可以了,谢谢

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