報錯:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [db.properties] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; 前言中不允許有內容。
原因:低級錯誤!使用時引入配置文件錯誤,導致讀取內容發現配置文件格式錯誤
錯誤使用:
正確使用: