文档根元素 "beans" 必须匹配 DOCTYPE 根 "null"。  Line 4 in XML document from class path resource [bean2.xml] is invalid

 

这个是spring 1.0低版本引起的  直接换成4.0解决问题

 

还解决不了的  找我 wx: mljqwer 帮你搞定  

 

 

ion parsing XML document from class path resource [bean1.xml]; nested exception is java.io.FileNotFoundException: class path resource [bean1.xml] cannot be opened because it does not exist

 

 

解决办法:

bean文件要放在src项目目录下  

 

posted on 2018-09-22 06:42  mljqqh  阅读(310)  评论(0编辑  收藏  举报