SSM整合小测试出错
做小测试想看下效果,结果一直报错Servlet.init() for servlet spring-mvc threw exception。
查了很久感觉也不像是相应的问题,后来看到了一个说是spring-MVC的扫描问题。。。。
试了一下将 <context:component-scan base-package="com.core.controller" />
改成<context:component-scan base-package="com.core.controller"></context:component-scan>
然后就正常 了。
感觉eclipse有什么毛病。。。。。。