
报错,然后根据网友回答更改后
又报错Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 8 in XML document from class path resource [com/article3/example2/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 23; 元素类型 "bean" 必须后跟属性规范 ">" 或 "/>
元素 'bean' 必须不含字符 [子级], 因为该类型的内容类型为“仅元素”
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
默默悟问 2018-04-29 11:07关注第8行的class和前面的双引号中间没有空格。后面还有。
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报