Error in spring application context schema

前端 未结 14 947
借酒劲吻你
借酒劲吻你 2020-12-30 04:03

I have a maven-spring project in Eclipse and I have this annoying error message in one of my spring contexts:

Referenced file contains errors (jar:fil

相关标签:
14条回答
  • 2020-12-30 04:30

    If you don't have control those files, as those files can be part of other projects and you are not authorized to make any changes, then you can bypass those errors in eclipse by going, Preferences --> XML --> XML Files --> Validation --> Referenced file contains errors --> choose Ignore option.

    And let project get's validated, the error message will disappear.

    0 讨论(0)
  • 2020-12-30 04:33

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

    i faced this problem, when i was configuring dispatcher-servlet.xml ,you can remove this:

    xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context-3.0.xsd"
    

    from your xml and you can also follow the steps go to window -> preferences -> validation -> and unchecked XML validator and XML schema validator.

    0 讨论(0)
提交回复
热议问题