在IDEA 上把 maven 項目打包成 jar 包後使用 java -jar xxxx.jar 運行時報錯。
具體原因是spring找不到對應的xsd。
具體解決方案和詳細解釋請看鏈接。
maven項目打包發佈問題-Unable to locate Spring NamespaceHandler for XML schema namespace
Spring如何加載XSD文件(org.xml.sax.SAXParseException: Failed to read schema document錯誤的解決方法)
看完保證解決問題!!!