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元素间 有多余字符或文本存在。

例如:

多了个字符。

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

posted @ 2019-04-03 11:25  四叶笔记  阅读(10620)  评论(1编辑  收藏  举报