The Spring configuration file xsi:schemaLocation cannot be resolved, causing the solution to fail to start

  I encountered a situation today. There is no problem in reading the configuration file of spring locally. When it is thrown to the online server to run, it reports that the xml cannot be parsed. After searching for a long time, I found that the related xsd file could not be downloaded because the online server could not access the Internet. , there is no way you can't access the Internet, you can only use the local xsd file, find the relevant file path in the package imported by maven, and then configure it according to the screenshot.

  

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325292583&siteId=291194637