Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate Spring项目中出现意外的404错误_Spring_Hibernate_Spring Mvc - Fatal编程技术网

Hibernate Spring项目中出现意外的404错误

Hibernate Spring项目中出现意外的404错误,spring,hibernate,spring-mvc,Spring,Hibernate,Spring Mvc,我正在开发hibernate spring项目,该项目运行良好,直到我在pom.XML中添加Webflow Dependency。有人帮我吗 执行 web.xml springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy springSecurityFilterChain /* 上下文配置位置 /WEB-INF/applicationContext.xml org.springframework

我正在开发hibernate spring项目,该项目运行良好,直到我在pom.XML中添加Webflow Dependency。有人帮我吗

执行 web.xml

springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
springSecurityFilterChain
/*
上下文配置位置
/WEB-INF/applicationContext.xml
org.springframework.web.context.ContextLoaderListener
org.h2.server.web.DbStarter
调度员
org.springframework.web.servlet.DispatcherServlet
调度员
/
点击购买
调度员

注:
我将在一周内完成最后的复习。所以请帮帮我。我是一名初学者。请告诉我我是否犯了错误………

这听起来像是Web flow thingy依赖于另一个jar让我知道如何修复它共享pom.xml。检查其他spring的版本。可能存在不匹配。不过,我自己还没有使用webflow
java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.needsRefresh(Lorg/springframework/beans/factory/annotation/InjectionMetadata;Ljava/lang/Class;)Z
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:384)
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:333)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:908)
<web-app>
    <filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
 </filter-mapping>
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/applicationContext.xml
        </param-value>
    </context-param>
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        <listener-class>org.h2.server.web.DbStarter</listener-class>
    </listener>
  <servlet>
  <servlet-name>dispatcher</servlet-name>
  <servletclass>
org.springframework.web.servlet.DispatcherServlet</servletclass>
  </servlet>
  <servlet-mapping>
  <servlet-name>dispatcher</servlet-name> 
  <url-pattern>/</url-pattern>
  </servlet-mapping>
   <display-name>Click buy</display-name>

 </web-app>
<?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:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:webflow="http://www.springframework.org/schema/webflow-config"
    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
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/webflow-config
        http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd
        ">
<mvc:annotation-driven></mvc:annotation-driven>
<context:component-scan base-package="com.controller"></context:component-scan>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/pages/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
              <property name="maxUploadSize" value="10240000" />
 </bean>
<mvc:resources location="resources/Images/" mapping="resources/Images/**"/>

    </beans>