NutzCN Logo
问答 Search mapping for [GET] path=/user/count : NOT Action match
发布于 2399天前 作者 wx_oojqhs6ovvt5ira67qn0 2146 次浏览 复制 上一个帖子 下一个帖子
标签:
@IocBean
@At("/user")
@Ok("json")
@Fail("http:500")
public class UserModule {

    @Inject
    protected Dao dao;

    @At
    public int count() {
        return dao.count(User.class);
    }

}

为什么找不到

2017-12-19 21:12:36.67 DEBUG [http-bio-8080-exec-3] Search mapping for [GET] path=/user/count : NOT Action match
8 回复

类放错package了吧,启动日志发一下

十二月 19, 2017 9:32:28 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mynutz' did not find a matching property.
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.79
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Jun 26 2017 16:25:20 UTC
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.79.0
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:\Program Files\Java\jdk1.7.0_80\jre
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.7.0_80-b15
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         F:\Program Files\Apache Software Foundation\Tomcat 7.0
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         F:\Program Files\Apache Software Foundation\Tomcat 7.0
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:54698
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=F:\Program Files\Apache Software Foundation\Tomcat 7.0
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=F:\Program Files\Apache Software Foundation\Tomcat 7.0
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=F:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
十二月 19, 2017 9:32:28 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
十二月 19, 2017 9:32:28 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_80\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.7.0_80\jre\bin;C:/Program Files/Java/jdk1.7.0_80/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_80/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_80/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.7.0_80\bin;F:\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;f:\app\Administrator\product\11.2.0\dbhome_2\bin;F:\mysql\MySQL Server 5.7\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;F:\mysql\MySQL Utilities 1.3.5\;F:\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;D:\VisualSVN Server\bin;D:\TortoiseSVN\bin;C:\Program Files\nodejs\;C:\Users\Administrator\AppData\Local\atom\bin;C:\Users\Administrator\AppData\Local\Programs\Fiddler;C:\Users\Administrator\AppData\Local\GitHubDesktop\bin;C:\Users\Administrator\AppData\Roaming\npm;D:\eclipesMars\eclipse;;.
十二月 19, 2017 9:32:29 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
十二月 19, 2017 9:32:29 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
十二月 19, 2017 9:32:29 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 730 ms
十二月 19, 2017 9:32:29 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 19, 2017 9:32:29 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.79
十二月 19, 2017 9:32:30 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 19, 2017 9:32:30 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [283] milliseconds.
2017-12-19 21:32:30.592 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-12-19 21:32:30.597 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2017-12-19 21:32:30.757 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=D:\eclipesMars\eclipse], Jar[path=F:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\mynutz\WEB-INF\lib\nutz-1.r.60.jar], Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar], Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar], Jar[path=C:\Program Files\Java\jdk1.7.0_80\lib\tools.jar]]
2017-12-19 21:32:30.831 DEBUG [localhost-startStop-1] Locations for Scans:
{D:\eclipesMars\eclipse=Dir[path=D:\eclipesMars\eclipse], F:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\mynutz\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=F:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\mynutz\WEB-INF\lib\nutz-1.r.60.jar], F:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar=Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar], F:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar=Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar], C:\Program Files\Java\jdk1.7.0_80\lib\tools.jar=Jar[path=C:\Program Files\Java\jdk1.7.0_80\lib\tools.jar], F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\classes=Dir[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\classes], F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\lib\mysql-connector-java-5.1.36-bin.jar=Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\lib\mysql-connector-java-5.1.36-bin.jar], F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\lib\druid-1.0.26.jar=Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\lib\druid-1.0.26.jar], F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=F:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\mynutz\WEB-INF\lib\nutz-1.r.60.jar]}
2017-12-19 21:32:30.896 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-12-19 21:32:30.912 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-12-19 21:32:30.915 INFO [localhost-startStop-1] Nutz Version : 1.r.60 
2017-12-19 21:32:30.915 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2017-12-19 21:32:30.915 DEBUG [localhost-startStop-1] Web Container Information:
2017-12-19 21:32:30.917 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2017-12-19 21:32:30.917 DEBUG [localhost-startStop-1]  - Current . path  : D:\eclipesMars\eclipse\.
2017-12-19 21:32:30.918 DEBUG [localhost-startStop-1]  - Java Version    : 1.7.0_80
2017-12-19 21:32:30.918 DEBUG [localhost-startStop-1]  - File separator  : \
2017-12-19 21:32:30.918 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2017-12-19 21:32:30.919 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
2017-12-19 21:32:30.919 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.79
2017-12-19 21:32:30.919 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
2017-12-19 21:32:30.920 DEBUG [localhost-startStop-1]  - ContextPath     : /mynutz
2017-12-19 21:32:30.920 DEBUG [localhost-startStop-1]  - context.tempdir : F:\Program Files\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\mynutz
2017-12-19 21:32:30.920 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
2017-12-19 21:32:30.921 DEBUG [localhost-startStop-1] >> app.root = F:/Program Files/Apache Software Foundation/Tomcat 7.0/wtpwebapps/mynutz
2017-12-19 21:32:30.925 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2017-12-19 21:32:30.948 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-12-19 21:32:30.948 DEBUG [localhost-startStop-1] loading ioc js config from [dao.js]
2017-12-19 21:32:30.954 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2017-12-19 21:32:30.957 DEBUG [localhost-startStop-1] Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
17-12-19 21:32:30.958 WARN [localhost-startStop-1] NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
2017-12-19 21:32:30.959 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
2017-12-19 21:32:30.962 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-12-19 21:32:30.967 INFO [localhost-startStop-1] NutIoc init begin ...
2017-12-19 21:32:30.970 INFO [localhost-startStop-1] ... NutIoc init complete
2017-12-19 21:32:30.973 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-12-19 21:32:30.976 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-12-19 21:32:30.984 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-12-19 21:32:30.993 DEBUG [localhost-startStop-1] module class location 'file:/F:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/wtpwebapps/mynutz/WEB-INF/classes/'
2017-12-19 21:32:30.994 INFO [localhost-startStop-1] [loc=F:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\mynutz\WEB-INF\classes]not exist
2017-12-19 21:32:30.994 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
2017-12-19 21:32:30.996 DEBUG [localhost-startStop-1] Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
17-12-19 21:32:30.996 WARN [localhost-startStop-1] None module classes found!!!
17-12-19 21:32:30.996 WARN [localhost-startStop-1] None @At found in any modules class!!
2017-12-19 21:32:30.997 DEBUG [localhost-startStop-1] @Localization not define
2017-12-19 21:32:30.998 INFO [localhost-startStop-1] Setup application...
2017-12-19 21:32:30.999 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
2017-12-19 21:32:31.0 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-12-19 21:32:31.1 DEBUG [localhost-startStop-1] 	 >> Load definition name=$aop_async
2017-12-19 21:32:31.5 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@1350722797
2017-12-19 21:32:31.6 DEBUG [localhost-startStop-1] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-12-19 21:32:31.7 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app] 
2017-12-19 21:32:31.13 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-12-19 21:32:31.13 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
2017-12-19 21:32:31.13 DEBUG [localhost-startStop-1] Loading define for name=dao
2017-12-19 21:32:31.17 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-12-19 21:32:31.18 DEBUG [localhost-startStop-1] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-12-19 21:32:31.32 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
2017-12-19 21:32:31.32 DEBUG [localhost-startStop-1] Save object 'dao' to [app] 
2017-12-19 21:32:31.33 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2017-12-19 21:32:31.33 DEBUG [localhost-startStop-1] 	 >> Load definition name=dataSource
2017-12-19 21:32:31.34 DEBUG [localhost-startStop-1] Loading define for name=dataSource
2017-12-19 21:32:31.40 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-12-19 21:32:31.41 DEBUG [localhost-startStop-1] 	 >> Make...'dataSource'<>
2017-12-19 21:32:31.57 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-12-19 21:32:31.57 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app] 
十二月 19, 2017 9:32:31 下午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
2017-12-19 21:32:31.118 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2017-12-19 21:32:31.152 INFO [localhost-startStop-1] Init file-pool by: C:\Users\Administrator/.nutz/tmp/dao/ [200000]
2017-12-19 21:32:31.154 DEBUG [localhost-startStop-1] file-pool.home: 'C:\Users\Administrator\.nutz\tmp\dao'
2017-12-19 21:32:31.155 INFO [localhost-startStop-1] file-pool.cursor: 0
2017-12-19 21:32:31.165 DEBUG [localhost-startStop-1] Jdbcs init complete
2017-12-19 21:32:31.165 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2017-12-19 21:32:31.322 DEBUG [localhost-startStop-1] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-12-19 21:32:31.329 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.36 ( Revision: 4fc1f969f740409a4e03750316df2c0e429f3dc8 )
2017-12-19 21:32:31.329 DEBUG [localhost-startStop-1] JDBC Name   --> MySQL Connector Java
2017-12-19 21:32:31.330 DEBUG [localhost-startStop-1] JDBC URL    --> jdbc:mysql://127.0.0.1:3306/demo
2017-12-19 21:32:31.338 DEBUG [localhost-startStop-1] Mysql : character_set_client=utf8
2017-12-19 21:32:31.338 DEBUG [localhost-startStop-1] Mysql : character_set_connection=utf8
2017-12-19 21:32:31.338 DEBUG [localhost-startStop-1] Mysql : character_set_database=utf8
2017-12-19 21:32:31.339 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
2017-12-19 21:32:31.339 DEBUG [localhost-startStop-1] Mysql : character_set_results=
2017-12-19 21:32:31.339 DEBUG [localhost-startStop-1] Mysql : character_set_server=utf8
2017-12-19 21:32:31.340 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
2017-12-19 21:32:31.340 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=F:\mysql\MySQL Server 5.7\share\charsets\
2017-12-19 21:32:31.341 DEBUG [localhost-startStop-1] Mysql : binlog_format=STATEMENT
2017-12-19 21:32:31.342 DEBUG [localhost-startStop-1] Mysql : database=demo
2017-12-19 21:32:31.342 DEBUG [localhost-startStop-1] Mysql : user=root@localhost
2017-12-19 21:32:31.355 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.7.3-m13]
2017-12-19 21:32:31.360 DEBUG [localhost-startStop-1] Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-12-19 21:32:31.434 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user 
2017-12-19 21:32:31.436 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 515ms
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs has finished in 188 ms
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager has finished in 130 ms
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT has finished in 139 ms
十二月 19, 2017 9:32:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\WebDemo
十二月 19, 2017 9:32:31 下午 org.apache.catalina.deploy.WebXml setVersion
警告: Unknown version string [3.1]. Default version will be used.
十二月 19, 2017 9:32:32 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 19, 2017 9:32:32 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\WebDemo has finished in 354 ms
十二月 19, 2017 9:32:32 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
十二月 19, 2017 9:32:32 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十二月 19, 2017 9:32:32 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3175 ms
17-12-19 21:32:30.996 WARN [localhost-startStop-1] None module classes found!!!
17-12-19 21:32:30.996 WARN [localhost-startStop-1] None @At found in any modules class!!

UserModule的package应该是net.wendal.nutzbook.module,检查一下写了啥?

我原来就是写在那个包里面的 但是我上网查了一下 @Modules(scanPackage=true) 是扫描本包及子包 我怕我哪里写错 直接干到 本包里面去

而且,net.wendal.nutzboot下面只找到2个类,其中一个是MainModule另外一个是MainSetup,没有UserModule的踪影

Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-12-19 21:32:31.434

另外,tomcat版本也不对

重启几次可以了 为什么新的代码无法立即加载

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