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

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

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

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

例如:

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

多了个字符。

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

相关文章:

  • 2021-08-29
  • 2021-07-02
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2021-09-12
  • 2021-04-14
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案