发现了以元素 ‘bean’ 开头的无效内容。应以 ‘{“http://www.springframework.org/schema/beans”:description, “http://www.springframework.org/schema/beans”:meta, “http://www.springframework.org/schema/beans”:constructor-arg, “http://www.springframework.org/schema/beans”:property, “http://www.springframework.org/schema/beans”:qualifier, “http://www.springframework.org/schema/beans”:lookup-method, “http://www.springframework.org/schema/beans”:replaced-method, WC[##other:“http://www.springframework.org/schema/beans”]}’ 之一开头。
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
遇到这种情况看看是不是设置了两个bean值,在一个beans下面只能有一个bean ID,多设置就会报错:bean开头的无效内容。