Spring mvc SpringMVC4中的资源版本控制

Spring mvc SpringMVC4中的资源版本控制,spring-mvc,Spring Mvc,有人能帮我在我的web应用程序中实现资源版本控制吗 我的dispatcher-servlet.xml是 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.spri

有人能帮我在我的web应用程序中实现资源版本控制吗 我的dispatcher-servlet.xml是

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop"

    xsi:schemaLocation="http://www.springframework.org/schema/beans
                            http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
                            http://www.springframework.org/schema/context
                            http://www.springframework.org/schema/context/spring-context-4.0.xsd
                            http://www.springframework.org/schema/tx
                            http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
                            http://www.springframework.org/schema/mvc
                            http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
                            http://www.springframework.org/schema/aop
                            http://www.springframework.org/schema/aop/spring-aop-4.0.xsd">


    <!-- Declare a view resolver -->
    <bean id="viewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver"
        p:prefix="/WEB-INF/view/" p:suffix=".jsp" p:order="1" />
    <context:annotation-config />
    <context:component-scan base-package="com.safecare" />
    <mvc:annotation-driven />
    <mvc:interceptors>
        <bean id="webContentInterceptor"
            class="org.springframework.web.servlet.mvc.WebContentInterceptor">
            <property name="cacheSeconds" value="0" />
            <property name="useExpiresHeader" value="false" />
            <property name="useCacheControlHeader" value="true" />
            <property name="useCacheControlNoStore" value="true" />
        </bean>
    </mvc:interceptors>
    <mvc:annotation-driven />

    <bean id="messageSource"
        class="org.springframework.context.support.ResourceBundleMessageSource"
        p:basename="Messages" />
    <tx:annotation-driven transaction-manager="transactionManager" />
    <bean id="transactionManager"
        class="org.springframework.orm.hibernate3.HibernateTransactionManager"
        p:sessionFactory-ref="sessionFactory" />
    <bean id="sessionFactory"
        class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
        <property name="dataSource" ref="dataSource" />
        <property name="hibernateProperties">
            <props>
                <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
                <!--<prop key="hibernate.hbm2ddl.auto">update</prop>-->
                <prop key="hibernate.show_sql">true</prop>
<!--                <prop key="hibernate.c3p0.min_siz">5</prop>
                <prop key="hibernate.c3p0.max_size">50</prop>
                <prop key="hibernate.c3p0.timeout">3000</prop>
                <prop key="hibernate.c3p0.max_statements">50</prop>
                <prop key="hibernate.c3p0.idle_test_period">3000</prop>-->
            </props>
        </property>
        <property name="packagesToScan" value="com.safecare"></property>
    </bean>
<bean id="dataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource"
              p:driverClassName="com.mysql.jdbc.Driver" p:url="jdbc:mysql://localhost:8080/cortex_mcss_test1"
              p:username="root" p:password="mysql" />
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver" />
    <bean class="org.springframework.web.servlet.view.XmlViewResolver"
        p:location="/WEB-INF/JasperReport-View.xml" p:order="0" />
</beans> 

org.hibernate.dialogue.mysqldialogue
真的
我在上面的xml中添加了下面的代码,它创建了一个错误

栏目编号:18;cvc复杂类型.2.1:元素“mvc:resources”不能有字符或元素信息项[子项],因为该类型的内容类型为空



任何人都知道上述任何适当的文档

添加自动关闭标签

改变

 <mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/">


 <mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/">
 <mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/" />