SpringMVC问题记录
1.配置文件dispatcher-servlet.xml无故报错如下,但可以正常运行。
Multiple annotations found at this line: - Referenced file contains errors (http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd). For more information, right click on the message in the Problems View and select "Show Details..." - <?xml version="1.0" encoding="UTF-8"?> - Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.1.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
方法:
a. 查看http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd所指定的jar包版本是否为4.1
b. 在该文件任意一行输入空格在保存,问题就能解决。