NutzCN Logo
问答 NONE Annotation-Class found!!!
发布于 2560天前 作者 wx_oojqhs6ovvt5ira67qn0 1603 次浏览 复制 上一个帖子 下一个帖子
标签:
十二月 19, 2017 5:46:43 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.82
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Sep 29 2017 12:23:15 UTC
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.82.0
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:\Program Files\Java\jre7
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.7.0_80-b15
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         E:\apache-tomcat-7.0.82
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         E:\apache-tomcat-7.0.82
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:49996
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\apache-tomcat-7.0.82
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\apache-tomcat-7.0.82
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=E:\apache-tomcat-7.0.82\wtpwebapps
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\apache-tomcat-7.0.82\endorsed
十二月 19, 2017 5:46:43 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
十二月 19, 2017 5:46:43 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.2.14 using APR version 1.6.2.
十二月 19, 2017 5:46:43 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
十二月 19, 2017 5:46:44 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.2l  25 May 2017)
十二月 19, 2017 5:46:44 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
十二月 19, 2017 5:46:44 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
十二月 19, 2017 5:46:44 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1052 ms
十二月 19, 2017 5:46:44 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 19, 2017 5:46:44 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.82
十二月 19, 2017 5:46:45 下午 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.
2017-12-19 17:46:45.100 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-12-19 17:46:45.103 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2017-12-19 17:46:45.156 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=D:\eclipse-jee-mars-2-win32-x86_64\eclipse], Jar[path=E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.60.jar], Jar[path=E:\apache-tomcat-7.0.82\bin\bootstrap.jar], Jar[path=E:\apache-tomcat-7.0.82\bin\tomcat-juli.jar]]
2017-12-19 17:46:45.227 DEBUG [localhost-startStop-1] Locations for Scans:
{D:\eclipse-jee-mars-2-win32-x86_64\eclipse=Dir[path=D:\eclipse-jee-mars-2-win32-x86_64\eclipse], E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.60.jar], E:\apache-tomcat-7.0.82\bin\bootstrap.jar=Jar[path=E:\apache-tomcat-7.0.82\bin\bootstrap.jar], E:\apache-tomcat-7.0.82\bin\tomcat-juli.jar=Jar[path=E:\apache-tomcat-7.0.82\bin\tomcat-juli.jar], E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\classes=Dir[path=E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\classes], E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.36-bin.jar=Jar[path=E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.36-bin.jar], E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.26.jar=Jar[path=E:\apache-tomcat-7.0.82\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.26.jar]}
2017-12-19 17:46:45.266 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-12-19 17:46:45.274 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-12-19 17:46:45.275 INFO [localhost-startStop-1] Nutz Version : 1.r.60 
2017-12-19 17:46:45.276 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2017-12-19 17:46:45.276 DEBUG [localhost-startStop-1] Web Container Information:
2017-12-19 17:46:45.277 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2017-12-19 17:46:45.277 DEBUG [localhost-startStop-1]  - Current . path  : D:\eclipse-jee-mars-2-win32-x86_64\eclipse\.
2017-12-19 17:46:45.277 DEBUG [localhost-startStop-1]  - Java Version    : 1.7.0_80
2017-12-19 17:46:45.277 DEBUG [localhost-startStop-1]  - File separator  : \
2017-12-19 17:46:45.277 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2017-12-19 17:46:45.278 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
2017-12-19 17:46:45.278 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.82
2017-12-19 17:46:45.278 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
2017-12-19 17:46:45.278 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
2017-12-19 17:46:45.278 DEBUG [localhost-startStop-1]  - context.tempdir : E:\apache-tomcat-7.0.82\work\Catalina\localhost\nutzbook
2017-12-19 17:46:45.278 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
2017-12-19 17:46:45.279 DEBUG [localhost-startStop-1] >> app.root = E:/apache-tomcat-7.0.82/wtpwebapps/nutzbook
2017-12-19 17:46:45.281 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 17:46:45.293 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-12-19 17:46:45.293 DEBUG [localhost-startStop-1] loading ioc js config from [dao.js]
2017-12-19 17:46:45.296 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2017-12-19 17:46:45.298 DEBUG [localhost-startStop-1] Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-12-19 17:46:45.300 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
2017-12-19 17:46:45.301 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 17:46:45.303 INFO [localhost-startStop-1] NutIoc init begin ...
2017-12-19 17:46:45.304 INFO [localhost-startStop-1] ... NutIoc init complete
2017-12-19 17:46:45.307 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-12-19 17:46:45.308 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-12-19 17:46:45.312 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-12-19 17:46:45.318 DEBUG [localhost-startStop-1] module class location 'file:/E:/apache-tomcat-7.0.82/wtpwebapps/nutzbook/WEB-INF/classes/'
2017-12-19 17:46:45.318 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
17-12-19 17:46:45.299 WARN [localhost-startStop-1] NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
17-12-19 17:46:45.320 WARN [localhost-startStop-1] None module classes found!!!
17-12-19 17:46:45.320 WARN [localhost-startStop-1] None @At found in any modules class!!
2017-12-19 17:46:45.319 DEBUG [localhost-startStop-1] Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-12-19 17:46:45.320 DEBUG [localhost-startStop-1] @Localization not define
2017-12-19 17:46:45.321 INFO [localhost-startStop-1] Setup application...
2017-12-19 17:46:45.322 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
2017-12-19 17:46:45.322 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-12-19 17:46:45.322 DEBUG [localhost-startStop-1] 	 >> Load definition name=$aop_async
2017-12-19 17:46:45.326 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@1960480050
2017-12-19 17:46:45.326 DEBUG [localhost-startStop-1] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-12-19 17:46:45.327 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app] 
2017-12-19 17:46:45.331 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 17:46:45.331 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
2017-12-19 17:46:45.331 DEBUG [localhost-startStop-1] Loading define for name=dao
2017-12-19 17:46:45.334 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-12-19 17:46:45.334 DEBUG [localhost-startStop-1] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-12-19 17:46:45.342 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
2017-12-19 17:46:45.342 DEBUG [localhost-startStop-1] Save object 'dao' to [app] 
2017-12-19 17:46:45.342 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2017-12-19 17:46:45.343 DEBUG [localhost-startStop-1] 	 >> Load definition name=dataSource
2017-12-19 17:46:45.343 DEBUG [localhost-startStop-1] Loading define for name=dataSource
2017-12-19 17:46:45.348 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-12-19 17:46:45.348 DEBUG [localhost-startStop-1] 	 >> Make...'dataSource'<>
2017-12-19 17:46:45.359 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-12-19 17:46:45.360 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app] 
十二月 19, 2017 5:46:45 下午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
2017-12-19 17:46:45.399 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2017-12-19 17:46:45.420 INFO [localhost-startStop-1] Init file-pool by: C:\Users\Administrator/.nutz/tmp/dao/ [200000]
2017-12-19 17:46:45.421 DEBUG [localhost-startStop-1] file-pool.home: 'C:\Users\Administrator\.nutz\tmp\dao'
2017-12-19 17:46:45.421 INFO [localhost-startStop-1] file-pool.cursor: 0
2017-12-19 17:46:45.427 DEBUG [localhost-startStop-1] Jdbcs init complete
2017-12-19 17:46:45.427 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2017-12-19 17:46:45.554 DEBUG [localhost-startStop-1] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-12-19 17:46:45.558 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.36 ( Revision: 4fc1f969f740409a4e03750316df2c0e429f3dc8 )
2017-12-19 17:46:45.558 DEBUG [localhost-startStop-1] JDBC Name   --> MySQL Connector Java
2017-12-19 17:46:45.558 DEBUG [localhost-startStop-1] JDBC URL    --> jdbc:mysql://192.168.1.23:3306/test
2017-12-19 17:46:45.567 DEBUG [localhost-startStop-1] Mysql : character_set_client=latin1
2017-12-19 17:46:45.567 DEBUG [localhost-startStop-1] Mysql : character_set_connection=latin1
2017-12-19 17:46:45.567 DEBUG [localhost-startStop-1] Mysql : character_set_database=latin1
2017-12-19 17:46:45.567 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
2017-12-19 17:46:45.567 DEBUG [localhost-startStop-1] Mysql : character_set_results=
2017-12-19 17:46:45.568 DEBUG [localhost-startStop-1] Mysql : character_set_server=latin1
2017-12-19 17:46:45.568 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
2017-12-19 17:46:45.568 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=/alidata/server/mysql-5.6.21/share/charsets/
2017-12-19 17:46:45.570 DEBUG [localhost-startStop-1] Mysql : binlog_format=MIXED
2017-12-19 17:46:45.571 DEBUG [localhost-startStop-1] Mysql : database=test
2017-12-19 17:46:45.572 DEBUG [localhost-startStop-1] Mysql : user=dev@192.168.1.101
2017-12-19 17:46:45.582 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.6.21-log]
2017-12-19 17:46:45.585 DEBUG [localhost-startStop-1] Found 2 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-12-19 17:46:45.622 INFO [localhost-startStop-1] Can not find @Column(updateTime) in table/view (t_user)
2017-12-19 17:46:45.626 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user 
2017-12-19 17:46:45.628 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 349ms
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\apache-tomcat-7.0.82\webapps\docs
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\apache-tomcat-7.0.82\webapps\docs has finished in 30 ms
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\apache-tomcat-7.0.82\webapps\examples
十二月 19, 2017 5:46:45 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十二月 19, 2017 5:46:45 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十二月 19, 2017 5:46:45 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@250c4b29')
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\apache-tomcat-7.0.82\webapps\examples has finished in 215 ms
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\apache-tomcat-7.0.82\webapps\host-manager
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\apache-tomcat-7.0.82\webapps\host-manager has finished in 94 ms
十二月 19, 2017 5:46:45 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\apache-tomcat-7.0.82\webapps\manager
十二月 19, 2017 5:46:46 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\apache-tomcat-7.0.82\webapps\manager has finished in 73 ms
十二月 19, 2017 5:46:46 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\apache-tomcat-7.0.82\webapps\ROOT
十二月 19, 2017 5:46:46 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\apache-tomcat-7.0.82\webapps\ROOT has finished in 43 ms
十二月 19, 2017 5:46:46 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
十二月 19, 2017 5:46:46 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
十二月 19, 2017 5:46:46 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1866 ms

6 回复

还没写UserModule类吧?如果是的话,很正常

还没有写 但是 这段代码没有执行

  if (dao.count(User.class) == 0) {
            User user = new User();
            user.setName("admin");
            user.setPassword("123456");
            user.setCreateTime(new Date());
            user.setUpdateTime(new Date());
            dao.insert(user);
        }

有执行哦,日志里面有

SELECT COUNT(*) FROM t_user

那为什么我的控制太没有打印sql 语句和插入数据后的表格显示

因为if语句为假嘛,有数据就不插入了

可以把user表删掉,重启一下,肯定会打印了

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