xml - STS/Eclipse Loading Wrong Spring Beans XSD -
spring tool suite (3.1.0)/eclipse loading wrong version of spring beans xsd, causing xml validation errors. i've got spring-beans
3.2.2.release on classpath maven dependency, , profile
attribute of <beans>
element should permissable. sadly, flags error.
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <beans profile="!cloud"> [...]
the following in xml catalog settings, , suggest setting resolution version 3.1.4 of spring beans. i'm not sure how can override dependency maven (that change @ time).
if in spring jar see 3.1.4 xsd included in jar. in case suggest adding version number spring-beans.xsd in schemalocation. monkeyed around in xml editor validation, , found helped.
with out version number xml editor pulling in spring-beans.xsd , spring-beans-3.2.xsd, , ended failing validation.
Comments
Post a Comment