当加载Spring MVC如下情况卡住时,有可能是JDK版本问题。
...
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.
八月 12, 2015 2:20:27 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
八月 12, 2015 2:20:27 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
八月 12, 2015 2:20:31 下午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
Hibernate: select taskdefini0_.id as id1_4_, taskdefini0_.bean_class as bean_cla2_4_, taskdefini0_.bean_name as bean_nam3_4_, taskdefini0_.cron as cron4_4_, taskdefini0_.description as descript5_4_, taskdefini0_.method_name as method_n6_4_, taskdefini0_.name as name7_4_, taskdefini0_.is_start as is_start8_4_ from maintain_task_definition taskdefini0_ where 1=1
八月 12, 2015 2:22:49 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'spring'
---在这里就不动了---
解决方案:
把JDK版本从jdk1.7.0_79改为jdk1.7.0_17就行了。Tomcat也要降级。