spring xml配置的经验
xsd文件一定要配置正确,不然会导致启动报错。
Caused by: org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 121; cvc-elt.1: 找不到元素 ‘beans
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from class path resource [mybatis/spring-mybatis.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 33; cvc-elt.1: Cannot find the declaration of element 'beans'.
at
。找不到对应的xsd文件去解析bean.
此时可以自定义xsd
个版本的xsd文件拷贝到工程的source folder下
或者
记得用 / 而不是 .
https://www.cnblogs.com/interdrp/p/15700144.html