org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from

练习spring的时候遇到的问题:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from class path resource [beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 38; 与元素类型 “property” 相关联的属性 “value” 应有左引号。

按照字面的意思是在定义property的时候,value没有设置双引号所造成的,所以会报错,给value添加上引号就OK了。

猜你喜欢

转载自blog.csdn.net/weidoudoudashen/article/details/87880052
今日推荐