首页 > 其他分享 >springmvc环境部署报错: NoClassDefFoundError: org/springframework/web/cors/CorsProcessor

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

时间:2022-11-24 17:32:41浏览次数:43  
标签:web CorsProcessor BeanNameUrlHandlerMapping springmvc NoClassDefFoundError sprin


部署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_mvc

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

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


标签:web,CorsProcessor,BeanNameUrlHandlerMapping,springmvc,NoClassDefFoundError,sprin
From: https://blog.51cto.com/u_15890522/5884398

相关文章