springmvc环境部署报错: NoClassDefFoundError: org/springframework/web/cors/CorsProcessor

部署springmvc的时候报出一个很奇怪的错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping#0’: Failed to introspect bean class [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: org/springframework/web/cors/CorsProcessor

springmvc环境部署报错: NoClassDefFoundError: org/springframework/web/cors/CorsProcessor_第1张图片

其实这是jar包版本不一致的问题:

springmvc环境部署报错: NoClassDefFoundError: org/springframework/web/cors/CorsProcessor_第2张图片

你可能感兴趣的:(java,web)