`

Open quote is expected for attribute

阅读更多
Open quote is expected for attribute "{1}"

具体异常如下:

nested exception is org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated with an  element type  "name".:

一般原因就是XML文件中,期望的元素或者属性没有用“”引起来

比如我这里是:
<property name=sqlSessionFactoryBeanName value="sqlSessionFactory" />

sqlSessionFactoryBeanName 没有用引号引起来

正确的是:
<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics