信息: Initializing Spring FrameworkServlet 'spring'

来源:互联网 发布:ps磨皮插件怎么安装mac 编辑:程序博客网 时间:2024/06/10 17:59

今天搭建一个简单的Spring项目时:在启动项目时出现init项目特别慢卡在哪儿好久才会动,tomcat默认启动45s,必须手动设置100s才能启动完tomcat,最后发现我init  dataSource时没有开启数据库服务(我的数据库在虚拟机上)

信息: Initializing Spring FrameworkServlet 'spring'

信息: No Spring WebApplicationInitializer types detected on classpath
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
五月 08, 2017 7:40:31 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'spring'
==============加载mapper中的内容===============
五月 08, 2017 7:40:33 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/hello] is completed


解决方案:开启数据库(我的数据库在虚拟机上)

0 0