SSH整合时遇到问题总结
渣渣跟着书籍和视频在学习SSH框架,有些资料时间久远,版本使用的还是当时的版本(此为前提):
**1.**java.lang.IllegalStateException: Context namespace element ‘component-scan’ and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
我的JDK是1.8的,参考了这篇链接
**2.**org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
hbm.xml dtd 文件源的问题
IDE自动生成”http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd”
更改为:”http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd”
参考()
后续增加(未完)