Element 'beans' cannot have character [children], because the type's content type is element-only


出现此异常有可能,配置文件是复制粘贴过来,里面含有一些XML解析时无法确定的字符,只要将配置文件复制到记事本进行编辑,把一些空格(或者其他字符)删掉,把有用的空格也重新用手输入一遍。