Spring serving static content with mvc:resources, invalid xsd

前端 未结 2 1160
野的像风
野的像风 2020-12-21 04:45

As recommended by http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-static-resources I wish to use

相关标签:
2条回答
  • 2020-12-21 05:09

    Attributes in <mvc:resources> were added in Spring 3.0.4.

    EDIT That is: you just add Spring 3.0.4 to your dependencies and everything works fine (except error marks in Eclipse plugin). At runtime config files are parsed by Spring itself, therefore Spring's built-in XSD file is used.

    0 讨论(0)
  • 2020-12-21 05:27

    Not better than axtavt's response, but a little clue on how to suppress Eclipse error. Go into the Project properties and then Spring→Beans Support→Load NamespaceHandlers and XSDs from project's classpath [experimental]: Eclipse Spring Project Properties Screenshot

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