添加
       <!-- 定义请求处理映射HandlerMapping -->
       <bean id = "handlerMapping"
             class = "org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
            <!--指定请求和controller对应的关系 -->
            <property name = "mappings" ref = "urlMappings"/>
       </bean>
    <!-- 定义请求映射表 map -->
    <util:properties id="urlMappings">
        <prop key="/hello.form">helloController</prop>
    </util:properties>

时报错:

cvc-complex-type.2.4.c:The matching wildcard is strict,but no declaration can be found for element 'util:properties'

在上面添加
xmlns:util="http://www.springframework.org/schema/util"
以及
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd

相关文章:

  • 2022-12-23
  • 2021-07-22
  • 2021-12-30
  • 2021-05-25
  • 2021-07-07
  • 2021-06-24
猜你喜欢
  • 2021-04-14
  • 2021-11-03
  • 2021-05-22
  • 2022-12-23
  • 2021-05-30
  • 2021-06-07
相关资源
相似解决方案