求如何解决。springmvc 启动时会在控制台输出注入每个类的信息。导致 tomcat 启动太慢。改变 log4j 配置也不行
2016-03-14 14:24:17 +08:00
lql
[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
0 条回复
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/263368
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.