在我的应用程序中,我使用标签<mvc:resource>
,但我不知道它来自哪个jar / version / taglib:
Multiple annotations found at this line:
- Cannot locate BeanDefinitionParser for element [resources]
- Configuration problem: Cannot locate BeanDefinitionParser for element
[resources] Offending resource: file
[G:/WorkSpace/Spring/WechatApp/WebContent/WEB-INF/wechat- servlet.xml]
你能指出适当的jar / version / taglib吗?
答案 0 :(得分:1)
使用spring-mvc
jar
。
我希望您已正确添加xml命名空间:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
</bean>