Development

Eclipse에서 dispatcher-servlet.xml 파일 red 마크

¯¯\_(ツ)_/¯·2020년 4월 2일·조회 8,232

1. 개요

2. 현상

Multiple annotations found at this line:
	- Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd). For more information, right click on the message 
	 in the Problems View and select "Show Details..."
	- Referenced file contains errors (http://www.springframework.org/schema/mvc/spring-mvc.xsd). For more information, right click on the message in the 
	 Problems View and select "Show Details..."

3. 해결책

https://stackoverflow.com/questions/13693065/error-in-spring-application-context-schema

 

I recently had a similar problem in latest Eclipse (Kepler) and fixed it by disabling the option "Honour all XML schema locations" in Preferences > XML > XML Files > Validation. It disables validation for references to the same namespaces that point to different schema locations, only taking the first found generally in the XML file being validated. This option comes from the Xerces library.

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.