NutzCN Logo
问答 一直报404 没有这个方法
发布于 2704天前 作者 大豪豪 1351 次浏览 复制 上一个帖子 下一个帖子
标签:

2017-07-28 17:31:24,072 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) DEBUG - Search mapping for [GET] path=/user/count : NOT Action match

4 回复

回复按钮旁边就是 "插入代码或日志片段"的按钮!!

贴完整启动日志

���� 28, 2017 5:30:56 ���� org.apache.catalina.core.AprLifecycleListener init
��Ϣ: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
���� 28, 2017 5:30:56 ���� org.apache.catalina.core.AprLifecycleListener init
��Ϣ: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
���� 28, 2017 5:30:58 ���� org.apache.catalina.core.AprLifecycleListener initializeSSL
��Ϣ: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
���� 28, 2017 5:30:58 ���� org.apache.coyote.AbstractProtocol init
��Ϣ: Initializing ProtocolHandler ["http-apr-8080"]
���� 28, 2017 5:30:58 ���� org.apache.coyote.AbstractProtocol init
��Ϣ: Initializing ProtocolHandler ["ajp-apr-8009"]
���� 28, 2017 5:30:58 ���� org.apache.catalina.startup.Catalina load
��Ϣ: Initialization processed in 3239 ms
���� 28, 2017 5:30:58 ���� org.apache.catalina.core.StandardService startInternal
��Ϣ: Starting service Catalina
���� 28, 2017 5:30:58 ���� org.apache.catalina.core.StandardEngine startInternal
��Ϣ: Starting Servlet Engine: Apache Tomcat/7.0.53
���� 28, 2017 5:30:58 ���� org.apache.catalina.startup.HostConfig deployDirectory
��Ϣ: Deploying web application directory D:\Tomcat7\apache-tomcat-7.0.53\webapps\ads
���� 28, 2017 5:31:04 ���� org.apache.catalina.util.SessionIdGenerator createSecureRandom
��Ϣ: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [328] milliseconds.
2017-07-28 17:31:04,510 org.nutz.mvc.NutFilter._init(NutFilter.java:85) INFO  - NutFilter[nutz] starting ...
2017-07-28 17:31:04,591 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=6 time use 36ms
2017-07-28 17:31:04,781 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=15 time use 189ms
2017-07-28 17:31:05,041 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2017-07-28 17:31:05,096 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2017-07-28 17:31:05,107 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.61.r2 2017-04-18 
2017-07-28 17:31:05,108 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2017-07-28 17:31:05,108 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2017-07-28 17:31:05,113 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : GBK
2017-07-28 17:31:05,114 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : D:\Tomcat7\apache-tomcat-7.0.53\bin\.
2017-07-28 17:31:05,115 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.7.0_79
2017-07-28 17:31:05,115 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2017-07-28 17:31:05,116 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2017-07-28 17:31:05,117 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 8.1 amd64
2017-07-28 17:31:05,118 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/7.0.53
2017-07-28 17:31:05,118 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.0
2017-07-28 17:31:05,119 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : /ads
2017-07-28 17:31:05,121 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : D:\Tomcat7\apache-tomcat-7.0.53\work\Catalina\localhost\ads
2017-07-28 17:31:05,121 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : com.kf.user.coll.Coll
2017-07-28 17:31:05,122 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:235) DEBUG - >> app.root = D:/Tomcat7/apache-tomcat-7.0.53/webapps/ads
2017-07-28 17:31:05,131 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:376) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2017-07-28 17:31:05,479 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-07-28 17:31:05,481 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [dao.js]
2017-07-28 17:31:05,535 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2017-07-28 17:31:05,555 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 0 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-07-28 17:31:05,556 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:55) WARN  - NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
2017-07-28 17:31:05,570 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) DEBUG - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
2017-07-28 17:31:05,655 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-07-28 17:31:05,685 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) INFO  - NutIoc init begin ...
2017-07-28 17:31:05,700 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) INFO  - ... NutIoc init complete
2017-07-28 17:31:05,714 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO  - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-07-28 17:31:05,726 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366) DEBUG - @Views(DefaultViewMaker.class)
2017-07-28 17:31:05,772 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-07-28 17:31:05,814 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/D:/Tomcat7/apache-tomcat-7.0.53/webapps/ads/WEB-INF/classes/com/kf/user/coll/Coll.class'
2017-07-28 17:31:05,815 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG -  > scan 'com.kf.user.coll'
2017-07-28 17:31:05,820 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 2 resource by src( com/kf/user/coll/ ) , regex( ^.+[.]class$ )
2017-07-28 17:31:05,823 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:184) WARN  - None module classes found!!!
2017-07-28 17:31:05,826 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:215) WARN  - None @At found in any modules class!!
2017-07-28 17:31:05,831 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:331) DEBUG - @Localization not define
2017-07-28 17:31:05,834 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:271) INFO  - Setup application...
2017-07-28 17:31:05,872 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2017-07-28 17:31:05,874 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-07-28 17:31:05,880 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=$aop_async
2017-07-28 17:31:05,896 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject($aop_async) in AsyncAopIocLoader@1754740764
2017-07-28 17:31:05,897 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-07-28 17:31:05,901 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object '$aop_async' to [app] 
2017-07-28 17:31:05,955 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-07-28 17:31:05,956 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dao
2017-07-28 17:31:05,960 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-07-28 17:31:05,981 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-07-28 17:31:05,982 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-07-28 17:31:06,146 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.dao.impl.NutDao without AOP
2017-07-28 17:31:06,147 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dao' to [app] 
2017-07-28 17:31:06,168 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-07-28 17:31:06,169 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dataSource
2017-07-28 17:31:06,169 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-07-28 17:31:06,244 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-07-28 17:31:06,244 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dataSource'<>
2017-07-28 17:31:06,332 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-07-28 17:31:06,333 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dataSource' to [app] 
2017-07-28 17:31:07,414 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:669) INFO  - {dataSource-1} inited
2017-07-28 17:31:07,418 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-07-28 17:31:08,068 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO  - Init file-pool by: C:\Users\kefeng_dev1/.nutz/tmp/dao/ [200000]
2017-07-28 17:31:08,070 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:37) DEBUG - file-pool.home: 'C:\Users\kefeng_dev1\.nutz\tmp\dao'
2017-07-28 17:31:08,072 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO  - file-pool.cursor: 0
2017-07-28 17:31:08,351 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:90) DEBUG - Jdbcs init complete
2017-07-28 17:31:08,352 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103) INFO  - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2017-07-28 17:31:08,983 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:189) DEBUG - select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-07-28 17:31:09,002 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) DEBUG - JDBC Driver --> mysql-connector-java-5.1.37 ( Revision: 09940f05b4c98150f352e787a2549f11a2e9da93 )
2017-07-28 17:31:09,003 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:201) DEBUG - JDBC Name   --> MySQL Connector Java
2017-07-28 17:31:09,004 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:203) DEBUG - JDBC URL    --> jdbc:mysql://192.168.1.134:3306/demo
2017-07-28 17:31:09,032 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_client=utf8
2017-07-28 17:31:09,033 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_connection=utf8
2017-07-28 17:31:09,034 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_database=utf8
2017-07-28 17:31:09,035 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_filesystem=binary
2017-07-28 17:31:09,036 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_results=
2017-07-28 17:31:09,037 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_server=utf8
2017-07-28 17:31:09,038 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_system=utf8
2017-07-28 17:31:09,039 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_sets_dir=E:\tools\mysql-5.6.24-winx64\share\charsets\
2017-07-28 17:31:09,046 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:219) DEBUG - Mysql : binlog_format=STATEMENT
2017-07-28 17:31:09,049 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226) DEBUG - Mysql : database=demo
2017-07-28 17:31:09,051 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:232) DEBUG - Mysql : user=root@192.168.1.121
2017-07-28 17:31:09,092 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:222) DEBUG - Database info --> MYSQL:[MySQL - 5.6.24]
2017-07-28 17:31:09,106 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 0 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-07-28 17:31:09,305 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT COUNT(*) FROM user_t 
2017-07-28 17:31:09,311 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO  - Nutz.Mvc[nutz] is up in 4188ms
���� 28, 2017 5:31:09 ���� org.apache.coyote.AbstractProtocol start
��Ϣ: Starting ProtocolHandler ["http-apr-8080"]
���� 28, 2017 5:31:09 ���� org.apache.coyote.AbstractProtocol start
��Ϣ: Starting ProtocolHandler ["ajp-apr-8009"]
���� 28, 2017 5:31:09 ���� org.apache.catalina.startup.Catalina start
��Ϣ: Server startup in 10859 ms
2017-07-28 17:31:24,072 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) DEBUG - Search mapping for [GET] path=/user/count : NOT Action match
2017-07-28 17:39:30,401 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) DEBUG - Search mapping for [GET] path=/user/count : NOT Action match
2017-07-28 17:40:16,457 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) DEBUG - Search mapping for [GET] path=/user/count : NOT Action match

请按nutzbook的描述, 完整,无遗漏,无添油加醋地操作一次!!

好的 感谢 我在从新弄一边

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