按照30分钟入门的登录小程序步骤来的,可是每次都会出现上面的信息,打开网址也都是404
日志信息如下:
2017-8-10 16:16:39.521 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-8-10 16:16:39.537 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2017-8-10 16:16:39.607 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=C:\Users\sangd\Desktop], Jar[path=F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.60.jar], Jar[path=F:\nutzbook\Tomcat 8.5\bin\bootstrap.jar], Jar[path=F:\nutzbook\Tomcat 8.5\bin\tomcat-juli.jar]]
2017-8-10 16:16:39.707 DEBUG [localhost-startStop-1] Locations for Scans:
{C:\Users\sangd\Desktop=Dir[path=C:\Users\sangd\Desktop], F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.60.jar], F:\nutzbook\Tomcat 8.5\bin\bootstrap.jar=Jar[path=F:\nutzbook\Tomcat 8.5\bin\bootstrap.jar], F:\nutzbook\Tomcat 8.5\bin\tomcat-juli.jar=Jar[path=F:\nutzbook\Tomcat 8.5\bin\tomcat-juli.jar], F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes=Dir[path=F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes], F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.26.jar=Jar[path=F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.26.jar], F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.40.jar=Jar[path=F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.40.jar]}
2017-8-10 16:16:39.820 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-8-10 16:16:39.835 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-8-10 16:16:39.839 INFO [localhost-startStop-1] Nutz Version : 1.r.60
2017-8-10 16:16:39.839 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2017-8-10 16:16:39.839 DEBUG [localhost-startStop-1] Web Container Information:
2017-8-10 16:16:39.840 DEBUG [localhost-startStop-1] - Default Charset : UTF-8
2017-8-10 16:16:39.841 DEBUG [localhost-startStop-1] - Current . path : C:\Users\sangd\Desktop\.
2017-8-10 16:16:39.841 DEBUG [localhost-startStop-1] - Java Version : 1.8.0_131
2017-8-10 16:16:39.841 DEBUG [localhost-startStop-1] - File separator : \
2017-8-10 16:16:39.842 DEBUG [localhost-startStop-1] - Timezone : Asia/Shanghai
2017-8-10 16:16:39.842 DEBUG [localhost-startStop-1] - OS : Windows 7 amd64
2017-8-10 16:16:39.842 DEBUG [localhost-startStop-1] - ServerInfo : Apache Tomcat/8.5.20
2017-8-10 16:16:39.842 DEBUG [localhost-startStop-1] - Servlet API : 3.1
2017-8-10 16:16:39.843 DEBUG [localhost-startStop-1] - ContextPath : /nutzbook
2017-8-10 16:16:39.843 DEBUG [localhost-startStop-1] - context.tempdir : F:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\nutzbook
2017-8-10 16:16:39.843 DEBUG [localhost-startStop-1] - MainModule : net.wendal.nutzbook.MainModule
2017-8-10 16:16:39.845 DEBUG [localhost-startStop-1] >> app.root = F:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook
2017-8-10 16:16:39.888 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2017-8-10 16:16:39.916 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-8-10 16:16:39.917 DEBUG [localhost-startStop-1] loading ioc js config from [dao.js]
2017-8-10 16:16:39.939 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2017-8-10 16:16:39.942 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-10 16:16:39.963 DEBUG [localhost-startStop-1] Found @IocBean : class net.wendal.nutzbook.module.UserModule
2017-8-10 16:16:39.975 INFO [localhost-startStop-1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2017-8-10 16:16:39.976 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-8-10 16:16:39.979 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-8-10 16:16:39.983 INFO [localhost-startStop-1] NutIoc init begin ...
2017-8-10 16:16:39.988 INFO [localhost-startStop-1] ... NutIoc init complete
2017-8-10 16:16:39.994 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-8-10 16:16:39.996 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-8-10 16:16:40.8 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-8-10 16:16:40.15 DEBUG [localhost-startStop-1] module class location 'file:/F:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook/WEB-INF/classes/'
2017-8-10 16:16:40.15 DEBUG [localhost-startStop-1] > scan 'net.wendal.nutzbook'
2017-8-10 16:16:40.17 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-10 16:16:40.18 DEBUG [localhost-startStop-1] >> add 'net.wendal.nutzbook.module.UserModule'
2017-8-10 16:16:40.24 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-8-10 16:16:40.28 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-8-10 16:16:40.38 DEBUG [localhost-startStop-1] '/user/count' >> (UserModule.java:25).count : int | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-10 16:16:40.46 DEBUG [localhost-startStop-1] '/user/login' >> (UserModule.java:29).login : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-10 16:16:40.55 DEBUG [localhost-startStop-1] '/user/logout' >> (UserModule.java:40).logout : void | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-10 16:16:40.55 INFO [localhost-startStop-1] Found 3 module methods
2017-8-10 16:16:40.56 DEBUG [localhost-startStop-1] @Localization not define
2017-8-10 16:16:40.57 INFO [localhost-startStop-1] Setup application...
2017-8-10 16:16:40.58 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
2017-8-10 16:16:40.59 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-10 16:16:40.61 DEBUG [localhost-startStop-1] >> Load definition name=$aop_async
2017-8-10 16:16:40.64 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@106221860
2017-8-10 16:16:40.64 DEBUG [localhost-startStop-1] >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-10 16:16:40.66 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app]
2017-8-10 16:16:40.74 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-8-10 16:16:40.74 DEBUG [localhost-startStop-1] >> Load definition name=dao
2017-8-10 16:16:40.74 DEBUG [localhost-startStop-1] Loading define for name=dao
2017-8-10 16:16:40.78 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-8-10 16:16:40.79 DEBUG [localhost-startStop-1] >> Make...'dao'<interface org.nutz.dao.Dao>
2017-8-10 16:16:40.96 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
2017-8-10 16:16:40.96 DEBUG [localhost-startStop-1] Save object 'dao' to [app]
2017-8-10 16:16:40.98 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2017-8-10 16:16:40.98 DEBUG [localhost-startStop-1] >> Load definition name=dataSource
2017-8-10 16:16:40.98 DEBUG [localhost-startStop-1] Loading define for name=dataSource
2017-8-10 16:16:40.106 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-8-10 16:16:40.107 DEBUG [localhost-startStop-1] >> Make...'dataSource'<>
2017-8-10 16:16:40.129 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-8-10 16:16:40.129 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app]
八月 10, 2017 4:16:40 下午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
2017-8-10 16:16:40.206 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2017-8-10 16:16:40.242 INFO [localhost-startStop-1] Init file-pool by: C:\Users\sangd/.nutz/tmp/dao/ [200000]
2017-8-10 16:16:40.243 DEBUG [localhost-startStop-1] file-pool.home: 'C:\Users\sangd\.nutz\tmp\dao'
2017-8-10 16:16:40.244 INFO [localhost-startStop-1] file-pool.cursor: 0
2017-8-10 16:16:40.253 DEBUG [localhost-startStop-1] Jdbcs init complete
2017-8-10 16:16:40.253 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
Thu Aug 10 16:16:40 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2017-8-10 16:16:40.727 DEBUG [localhost-startStop-1] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-8-10 16:16:40.738 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 )
2017-8-10 16:16:40.738 DEBUG [localhost-startStop-1] JDBC Name --> MySQL Connector Java
2017-8-10 16:16:40.738 DEBUG [localhost-startStop-1] JDBC URL --> jdbc:mysql://127.0.0.1:3306/nutzbook
2017-8-10 16:16:40.774 DEBUG [localhost-startStop-1] Mysql : character_set_client=utf8
2017-8-10 16:16:40.775 DEBUG [localhost-startStop-1] Mysql : character_set_connection=utf8
2017-8-10 16:16:40.775 DEBUG [localhost-startStop-1] Mysql : character_set_database=utf8
2017-8-10 16:16:40.775 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
2017-8-10 16:16:40.775 DEBUG [localhost-startStop-1] Mysql : character_set_results=
2017-8-10 16:16:40.776 DEBUG [localhost-startStop-1] Mysql : character_set_server=utf8
2017-8-10 16:16:40.776 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
2017-8-10 16:16:40.776 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
2017-8-10 16:16:40.779 DEBUG [localhost-startStop-1] Mysql : binlog_format=ROW
2017-8-10 16:16:40.779 DEBUG [localhost-startStop-1] Mysql : database=nutzbook
2017-8-10 16:16:40.780 DEBUG [localhost-startStop-1] Mysql : user=root@localhost
2017-8-10 16:16:40.795 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.7.19-log]
2017-8-10 16:16:40.800 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-10 16:16:40.876 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user
2017-8-10 16:16:40.877 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 1033ms
八月 10, 2017 4:16:40 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
八月 10, 2017 4:16:40 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
八月 10, 2017 4:16:40 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3133 ms
在浏览器中输入链接,就会出现标题的提示,并显示 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.