NutzCN Logo
问答 关于url映射问题,日志中无url映射信息
发布于 302天前 作者 qq_cdd73473 476 次浏览 复制 上一个帖子 下一个帖子
标签:
package com.elvish.scrum.module;

import javax.servlet.http.HttpSession;

import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.View;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.view.JspView;

@IocBean(singleton = false)
@At("/system/user")
@Ok("json")
@Fail("http:500")
public class UserModule extends BaseModule {

	@At("/admin_index")
	public View admin_index(HttpSession session) {
		return new JspView("user.login");
	}

}


package com.elvish.scrum.module;

import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;

public abstract class BaseModule {
	@Inject
	protected Dao dao;
}


@ChainBy(args = "mvc/mvc.js")
@Localization(value = "msg/", defaultLocalizationKey = "zh-CN")
@Fail("jsp:views.error.500")
@Ok("json:full")
@SetupBy(value = BaseSetup.class)
@IocBy(type = ComboIocProvider.class, args = { "*js", "ioc/", "*anno",
		"com.elvish.scrum", "*tx", // *tx事务拦截 aop,*async异步执行aop
		"*async" })
@Modules
public class MainModule {

}

index.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <script type="text/javascript">
    	window.location.href = "${pageContext.request.contextPath}/system/user/admin_index";
    </script>
  </body>
</html>

页面报错404,日志中无url映射信息,哪里配置错误了吗

2 回复
一月 24, 2017 11:10:39 上午 org.apache.catalina.core.AprLifecycleListener init
信息: 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_79\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_111/bin/server;C:/Program Files/Java/jre1.8.0_111/bin;C:/Program Files/Java/jre1.8.0_111/lib/amd64;C:\ProgramData\Oracle\Java\javapath;E:\oracle\app\zhu_longxiang\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\tools\svnClient\bin;C:\Program Files\Java\jdk1.6.0_45\bin;E:\maven\maven-3.0.5\bin;E:\mongodb\bin;D:\tools\bandizip\7z;D:\tools\eclipse\eclipse;;.
一月 24, 2017 11:10:39 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:nutzsprint' did not find a matching property.
一月 24, 2017 11:10:39 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
一月 24, 2017 11:10:39 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
一月 24, 2017 11:10:39 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 777 ms
一月 24, 2017 11:10:39 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 24, 2017 11:10:39 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
一月 24, 2017 11:10:41 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
2017-01-24 11:10:41,725 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO  - NutFilter[nutz] starting ...
2017-01-24 11:10:41,929 org.nutz.resource.Scans.<init>(Scans.java:509) DEBUG - Locations for Scans:
[Dir[path=D:\tools\eclipse\eclipse], Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\nutz-1.r.60.jar], Dir[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\classes], Jar[path=D:\tools\tomcat\apache-tomcat-7.0.47-windows-x64\apache-tomcat-7.0.47\bin\bootstrap.jar], Jar[path=D:\tools\tomcat\apache-tomcat-7.0.47-windows-x64\apache-tomcat-7.0.47\bin\tomcat-juli.jar], Jar[path=C:\Program Files\Java\jdk1.7.0_79\lib\tools.jar]]
2017-01-24 11:10:42,022 org.nutz.resource.Scans.init(Scans.java:105) DEBUG - Locations for Scans:
{D:\tools\eclipse\eclipse=Dir[path=D:\tools\eclipse\eclipse], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\nutz-1.r.60.jar], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\classes=Dir[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\classes], D:\tools\tomcat\apache-tomcat-7.0.47-windows-x64\apache-tomcat-7.0.47\bin\bootstrap.jar=Jar[path=D:\tools\tomcat\apache-tomcat-7.0.47-windows-x64\apache-tomcat-7.0.47\bin\bootstrap.jar], D:\tools\tomcat\apache-tomcat-7.0.47-windows-x64\apache-tomcat-7.0.47\bin\tomcat-juli.jar=Jar[path=D:\tools\tomcat\apache-tomcat-7.0.47-windows-x64\apache-tomcat-7.0.47\bin\tomcat-juli.jar], C:\Program Files\Java\jdk1.7.0_79\lib\tools.jar=Jar[path=C:\Program Files\Java\jdk1.7.0_79\lib\tools.jar], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\standard-1.1.2.jar=Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\standard-1.1.2.jar], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\druid-1.0.11.jar=Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\druid-1.0.11.jar], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\log4j-1.2.17.jar=Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\log4j-1.2.17.jar], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\mysql-connector-java-5.0.8.jar=Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\mysql-connector-java-5.0.8.jar], D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\jstl-1.2.jar=Jar[path=D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzsprint\WEB-INF\lib\jstl-1.2.jar]}
2017-01-24 11:10:42,087 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2017-01-24 11:10:42,117 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2017-01-24 11:10:42,119 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.60 
2017-01-24 11:10:42,119 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2017-01-24 11:10:42,119 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2017-01-24 11:10:42,120 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : UTF-8
2017-01-24 11:10:42,121 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : D:\tools\eclipse\eclipse\.
2017-01-24 11:10:42,121 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.7.0_79
2017-01-24 11:10:42,121 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2017-01-24 11:10:42,121 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2017-01-24 11:10:42,122 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 8.1 amd64
2017-01-24 11:10:42,122 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/7.0.47
2017-01-24 11:10:42,122 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.0
2017-01-24 11:10:42,123 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : /nutzsprint
2017-01-24 11:10:42,123 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : D:\workspace\java\ssm\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\work\Catalina\localhost\nutzsprint
2017-01-24 11:10:42,123 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : com.elvish.scrum.base.MainModule
2017-01-24 11:10:42,124 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) DEBUG - >> app.root = D:/workspace/java/ssm/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/nutzsprint
2017-01-24 11:10:42,131 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.elvish.scrum", "*tx", "*async"],init=[])
2017-01-24 11:10:42,162 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-01-24 11:10:42,163 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [db.js]
2017-01-24 11:10:42,166 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) DEBUG - Loaded 3 bean define from path=[ioc/] --> [dataSource, dao, conf]
2017-01-24 11:10:42,171 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 7 resource by src( com/elvish/scrum/ ) , regex( ^.+[.]class$ )
2017-01-24 11:10:42,198 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.elvish.scrum.module.UserModule
2017-01-24 11:10:42,206 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) INFO  - Found 1 classes in 1 base-packages!
beans = ["userModule"]
2017-01-24 11:10:42,207 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-01-24 11:10:42,209 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-01-24 11:10:42,213 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) INFO  - NutIoc init begin ...
2017-01-24 11:10:42,216 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) INFO  - ... NutIoc init complete
2017-01-24 11:10:42,219 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO  - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-01-24 11:10:42,221 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) DEBUG - @Views(DefaultViewMaker.class)
2017-01-24 11:10:42,231 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( mvc/mvc.js ) , regex( ^(.+[.])(js|json)$ )
2017-01-24 11:10:42,236 org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.<init>(JsonActionChainMakerConfiguretion.java:37) DEBUG - ActionChain Config:
{
   "default": {
      "ps": ["com.elvish.scrum.mvc.LogTimeProcessor", "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
      "error": "org.nutz.mvc.impl.processor.FailProcessor"
   }
}
2017-01-24 11:10:42,236 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:266) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-01-24 11:10:42,241 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/D:/workspace/java/ssm/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/nutzsprint/WEB-INF/classes/com/elvish/scrum/base/MainModule.class'
2017-01-24 11:10:42,241 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG -  > scan 'com.elvish.scrum.base'
2017-01-24 11:10:42,243 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 2 resource by src( com/elvish/scrum/base/ ) , regex( ^.+[.]class$ )
2017-01-24 11:10:42,244 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:184) WARN  - None module classes found!!!
2017-01-24 11:10:42,244 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:218) WARN  - None @At found in any modules class!!
2017-01-24 11:10:42,244 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:306) DEBUG - Localization: org.nutz.mvc.impl.NutMessageLoader('msg/')  dft<zh-CN>
2017-01-24 11:10:42,267 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( msg/ ) , regex( ^.+[.]properties$ )
2017-01-24 11:10:42,267 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) DEBUG - Load Messages in 1 resource : [[NutResource[zh-CN/user.properties]]]
2017-01-24 11:10:42,269 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) DEBUG - Message Loaded, size = 2
2017-01-24 11:10:42,269 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274) INFO  - Setup application...
2017-01-24 11:10:42,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2017-01-24 11:10:42,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-01-24 11:10:42,271 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=$aop_async
2017-01-24 11:10:42,274 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject($aop_async) in AsyncAopIocLoader@1343977764
2017-01-24 11:10:42,274 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-01-24 11:10:42,277 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object '$aop_async' to [app] 
2017-01-24 11:10:42,283 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-01-24 11:10:42,283 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dao
2017-01-24 11:10:42,283 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-01-24 11:10:42,291 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-01-24 11:10:42,291 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-01-24 11:10:42,304 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.dao.impl.NutDao without AOP
2017-01-24 11:10:42,304 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dao' to [app] 
2017-01-24 11:10:42,305 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-01-24 11:10:42,305 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dataSource
2017-01-24 11:10:42,306 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-01-24 11:10:42,313 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-01-24 11:10:42,313 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dataSource'<>
2017-01-24 11:10:42,333 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-01-24 11:10:42,333 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dataSource' to [app] 
2017-01-24 11:10:42,350 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,350 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=conf
2017-01-24 11:10:42,351 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=conf
2017-01-24 11:10:42,351 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-01-24 11:10:42,351 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'conf'<>
2017-01-24 11:10:42,352 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-01-24 11:10:42,352 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'conf' to [app] 
2017-01-24 11:10:42,355 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( custom/db.properties ) , regex( ^.+[.]properties$ )
2017-01-24 11:10:42,363 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,363 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,365 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,366 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,367 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,367 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,367 com.alibaba.druid.pool.DruidAbstractDataSource.setMaxIdle(DruidAbstractDataSource.java:935) ERROR - maxIdle is deprecated
2017-01-24 11:10:42,368 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,368 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,369 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,369 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-01-24 11:10:42,715 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:667) INFO  - {dataSource-1} inited
2017-01-24 11:10:42,716 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-01-24 11:10:42,746 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO  - Init file-pool by: C:\Users\zhu_longxiang/.nutz/tmp/dao/ [200000]
2017-01-24 11:10:42,746 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:37) DEBUG - file-pool.home: 'C:\Users\zhu_longxiang\.nutz\tmp\dao'
2017-01-24 11:10:42,747 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO  - file-pool.cursor: 0
2017-01-24 11:10:42,761 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:90) DEBUG - Jdbcs init complete
2017-01-24 11:10:42,762 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-01-24 11:10:42,769 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:188) DEBUG - select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-01-24 11:10:42,774 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:199) DEBUG - JDBC Driver --> mysql-connector-java-5.0.8 ( Revision: ${svn.Revision} )
2017-01-24 11:10:42,774 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) DEBUG - JDBC Name   --> MySQL-AB JDBC Driver
2017-01-24 11:10:42,774 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:202) DEBUG - JDBC URL    --> jdbc:mysql://127.0.0.1:3306/sprint?useUnicode=true&characterEncoding=UTF8
2017-01-24 11:10:42,855 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_client=utf8
2017-01-24 11:10:42,855 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_connection=utf8
2017-01-24 11:10:42,856 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_database=utf8
2017-01-24 11:10:42,856 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_filesystem=binary
2017-01-24 11:10:42,857 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_results=
2017-01-24 11:10:42,857 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_server=latin1
2017-01-24 11:10:42,857 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_system=utf8
2017-01-24 11:10:42,858 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_sets_dir=D:\tools\mysql\share\charsets\
2017-01-24 11:10:42,861 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:219) DEBUG - Mysql : binlog_format=MIXED
2017-01-24 11:10:42,862 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226) DEBUG - Mysql : database=sprint
2017-01-24 11:10:42,862 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:232) DEBUG - Mysql : user=root@localhost
2017-01-24 11:10:42,890 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:221) DEBUG - Database info --> MYSQL:[MySQL - 6.0.5-alpha-community]
2017-01-24 11:10:42,898 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 7 resource by src( com/elvish/scrum/ ) , regex( ^.+[.]class$ )
2017-01-24 11:10:42,980 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT COUNT(*) FROM sys_user 
2017-01-24 11:10:42,981 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO  - Nutz.Mvc[nutz] is up in 857ms
一月 24, 2017 11:10:42 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
一月 24, 2017 11:10:42 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
一月 24, 2017 11:10:42 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3441 ms

有多个MainModule?web.xml声明的不是你写这个?

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