Referenced file contains errors (http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd)

1.maven-spring project报错:

Description Resource Path Location Type
Referenced file contains errors (http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd).  For more information, right click on the message in the Problems View and select "Show Details..." applicationContext.xml  .......  line 1 XML Problem
Description Resource Path Location Type
Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."  ... ..... line 1 XML Problem



2.解决方案

参考:http://stackoverflow.com/questions/13693065/error-in-spring-application-context-schema


Sometimes the spring config xml file works not well on next eclipse open up.

It shows error in the xml file caused by schema definition, no matter reopen eclipse or clean up project are both not working.

But try this!

Right click on the spring config xml file, and select validate.

After a while, the error disappears and eclipse tells you there is no error on this file.

What a joke...


你可能感兴趣的:(java+web)