V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
lql
V2EX  ›  问与答

求如何解决。springmvc 启动时会在控制台输出注入每个类的信息。导致 tomcat 启动太慢。改变 log4j 配置也不行

  •  
  •   lql · 2016-03-14 14:24:17 +08:00 · 5073 次点击
    这是一个创建于 3176 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'exceptionResolver'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(432) | Creating instance of bean 'org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(460) | Finished creating instance of bean 'org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator'
    [QC] DEBUG [localhost-startStop-1] org.springframework.web.servlet.DispatcherServlet.initRequestToViewNameTranslator(649) | Unable to locate RequestToViewNameTranslator with name 'viewNameTranslator': using default [org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@552dc111]
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(246) | Returning cached instance of singleton bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(432) | Creating instance of bean 'org.springframework.web.servlet.support.SessionFlashMapManager'
    [QC] DEBUG [localhost-startStop-1] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(460) | Finished creating instance of bean 'org.springframework.web.servlet.support.SessionFlashMapManager'
    [QC] DEBUG [localhost-startStop-1] org.springframework.web.servlet.DispatcherServlet.initFlashMapManager(711) | Unable to locate FlashMapManager with name 'flashMapManager': using default [org.springframework.web.servlet.support.SessionFlashMapManager@751f59de]
    [QC] DEBUG [localhost-startStop-1] org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(72) | Searching for key 'spring.liveBeansView.mbeanDomain' in [servletConfigInitParams]
    [QC] DEBUG [localhost-startStop-1] org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(72) | Searching for key 'spring.liveBeansView.mbeanDomain' in [servletContextInitParams]
    [QC] DEBUG [localhost-startStop-1] org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(72) | Searching for key 'spring.liveBeansView.mbeanDomain' in [jndiProperties]
    [QC] DEBUG [localhost-startStop-1] org.springframework.jndi.JndiTemplate.lookup(150) | Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain]
    [QC] DEBUG [localhost-startStop-1] org.springframework.jndi.JndiLocatorSupport.lookup(101) | Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found - trying original name [spring.liveBeansView.mbeanDomain]. javax.naming.NameNotFoundException: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find [spring.liveBeansView.mbeanDomain].
    [QC] DEBUG [localhost-startStop-1] org.springframework.jndi.JndiTemplate.lookup(150) | Looking up JNDI object with name [spring.liveBeansView.mbeanDomain]
    [QC] DEBUG [localhost-startStop-1] org.springframework.jndi.JndiPropertySource.getProperty(87) | JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with message: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find [spring.liveBeansView.mbeanDomain].. Returning null.
    [QC] DEBUG [localhost-startStop-1] org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(72) | Searching for key 'spring.liveBeansView.mbeanDomain' in [systemProperties]
    [QC] DEBUG [localhost-startStop-1] org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(72) | Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment]
    [QC] DEBUG [localhost-startStop-1] org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(94) | Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null]
    [QC] DEBUG [localhost-startStop-1] org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(533) | Published WebApplicationContext of servlet 'rest' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.rest]
    [QC] INFO [localhost-startStop-1] org.springframework.web.servlet.FrameworkServlet.initServletBean(473) | FrameworkServlet 'rest': initialization completed in 57528 ms
    [QC] DEBUG [localhost-startStop-1] org.springframework.web.servlet.HttpServletBean.init(139) | Servlet 'rest' configured successfully
    三月 14, 2016 2:16:39 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory D:\apache-tomcat-7.0.67\webapps\docs
    三月 14, 2016 2:16:43 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory D:\apache-tomcat-7.0.67\webapps\docs has finished in 3,784 ms
    三月 14, 2016 2:16:43 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory D:\apache-tomcat-7.0.67\webapps\examples
    三月 14, 2016 2:16:56 下午 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    三月 14, 2016 2:16:56 下午 org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    三月 14, 2016 2:16:56 下午 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6bd149ae')
    三月 14, 2016 2:16:56 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory D:\apache-tomcat-7.0.67\webapps\examples has finished in 13,240 ms
    三月 14, 2016 2:16:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory D:\apache-tomcat-7.0.67\webapps\host-manager
    三月 14, 2016 2:17:01 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory D:\apache-tomcat-7.0.67\webapps\host-manager has finished in 4,114 ms
    三月 14, 2016 2:17:01 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory D:\apache-tomcat-7.0.67\webapps\manager
    三月 14, 2016 2:17:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory D:\apache-tomcat-7.0.67\webapps\manager has finished in 4,258 ms
    三月 14, 2016 2:17:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory D:\apache-tomcat-7.0.67\webapps\ROOT
    三月 14, 2016 2:17:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory D:\apache-tomcat-7.0.67\webapps\ROOT has finished in 3,777 ms
    三月 14, 2016 2:17:09 下午 org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    三月 14, 2016 2:17:09 下午 org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    三月 14, 2016 2:17:09 下午 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 306178 ms
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2554 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:36 · PVG 10:36 · LAX 18:36 · JFK 21:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.