发布时停在
root of factory hierarchy这一步,一般来说是mapper和dao层的方法不对应造成的
发布停止如下:
信息: Initializing Spring FrameworkServlet 'springmvc'
INFO - FrameworkServlet 'springmvc': initialization started
INFO - Refreshing WebApplicationContext for namespace 'springmvc-servlet': startup date [Fri Jan 22 11:17:12 CST 2016]; root of context hierarchy
INFO - Loading XML bean definitions from class path resource [config/applicationContext.xml]
INFO - FrameworkServlet 'springmvc': initialization started
INFO - Refreshing WebApplicationContext for namespace 'springmvc-servlet': startup date [Fri Jan 22 11:17:12 CST 2016]; root of context hierarchy
INFO - Loading XML bean definitions from class path resource [config/applicationContext.xml]
INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1958015a: defining beans...........................
这时,就仔细检查mapper和dao层的方法是否都对应了,
如果实在找不到解决方案,可以尝试采取会滚代码的方式解决问题