xml文件报Element 'beans' cannot have character [children],because the type's content type is element


写springMvc.xml文件时,偶然遇到 Element 'beans' cannot have character [children],because the type's content type is element

报错为:元素 'beans' 必须不含字符 [子级], 因为该类型的内容类型为“仅元素"。

这种情况一般是因为beans元素间 有多余字符或文本存在。

例如:

多了个字符。

这样的很明显,有时候遇到不显示的字符就很尴尬,这样的情况再规范编码就好了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM