啓動後tomcat顯示的代碼以下:html
2014-4-3 10:50:15 org.apache.catalina.core.AprLifecycleListener initjava
信息: 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.6.0_21/bin;D:/tomcat/apache-tomcat-7.0.37/apache-tomcat-7.0.37/bin 2014-4-3 10:50:16 org.apache.coyote.AbstractProtocol initweb
信息: Initializing ProtocolHandler ["http-bio-8080"] 2014-4-3 10:50:16 org.apache.coyote.AbstractProtocol initspring
信息: Initializing ProtocolHandler ["ajp-bio-8009"] 2014-4-3 10:50:16 org.apache.catalina.startup.Catalina load數據庫
信息: Initialization processed in 1664 ms 2014-4-3 10:50:17 org.apache.catalina.core.StandardService startInternalapache
信息: Starting service Catalina 2014-4-3 10:50:17 org.apache.catalina.core.StandardEngine startInternaltomcat
信息: Starting Servlet Engine: Apache Tomcat/7.0.37 2014-4-3 10:50:17 org.apache.catalina.startup.HostConfig deployDirectorysession
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.37\apache-tomcat-7.0.37\webapps\docs 2014-4-3 10:50:17 org.apache.catalina.util.SessionIdGenerator createSecureRandomapp
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [156] milliseconds. 2014-4-3 10:50:17 org.apache.catalina.startup.HostConfig deployDirectorydom
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.37\apache-tomcat-7.0.37\webapps\Example1_1 2014-4-3 10:50:18 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.37\apache-tomcat-7.0.37\webapps\examples 2014-4-3 10:50:18 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized() 2014-4-3 10:50:18 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized() 2014-4-3 10:50:18 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1cebc9f') 2014-4-3 10:50:18 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.37\apache-tomcat-7.0.37\webapps\host-manager 2014-4-3 10:50:18 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.37\apache-tomcat-7.0.37\webapps\manager 2014-4-3 10:50:19 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.37\apache-tomcat-7.0.37\webapps\my_register_login 2014-4-3 10:50:28 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath 2014-4-3 10:50:28 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
啓動到這的時候,就等個幾分鐘才能啓動成功,看了一下,應該是個人項目my_register_login出了問題。後來上網查了一下,哎,原來是在個人這個項目中使用鏈接了數據庫的操做,而我卻沒有開啓數據庫,直到tomcat鏈接數據庫超時以後纔會進行下一步,因此啓動比較慢。正確的辦法是先打開數據庫,而後在啓動tomcat,哈哈,一切ok~~~