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

文档根元素 "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

解决办法:

扫描二维码关注公众号,回复: 3283022 查看本文章

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

猜你喜欢

转载自www.cnblogs.com/mljqqh/p/9689320.html