使用spring mvc 4.2.x.jar ClassNotFoundException:org.springframework.web.cors.CorsConfigurationSource
来源:互联网 发布:vb冒泡排序法 编辑:程序博客网 时间:2024/05/20 01:10
使用spring mvc的包时,如果选择了4.2.x及以上版本,在控制器中调用RequestMapping("")注解时
启动Tomcat报错:ClassNotFoundException:org.springframework.web.cors.CorsConfigurationSource
原因是4.2版本后,spring支持跨域共享,具体的使用方法参考文档
CORS support in Spring Framework
简单的解决方法:
classpath下将jar包换成4.2.x及以下的版本即可。
0 0
- 使用spring mvc 4.2.x.jar ClassNotFoundException:org.springframework.web.cors.CorsConfigurationSource
- Spring MVC with Maven - java.lang.ClassNotFoundException: org.springframework.web.servlet.Dispatcher
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
- maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLo
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
- maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
- spring MVC关于org.springframework.web.servlet.handler.SimpleUrlHandlerMapping的使用
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [SpringMVC]ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListene
- [ssh]ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException : org.springframework.web.context.ContextLoaderListener 处理
- 模拟大华或海康相机的循环&&动态链接库的形式实现&&回调函数的使用
- Nvidia GP100
- Unsupported major.minor version 52.0
- 人脸识别测颜值、测脸龄、测相似度微信接口
- 设计模式(七)装饰模式
- 使用spring mvc 4.2.x.jar ClassNotFoundException:org.springframework.web.cors.CorsConfigurationSource
- 13个小技巧帮你征服Xcode
- javascript深入理解js闭包
- oracle日志挖掘dbms_logmnr
- iOS 查看设备中的沙盒数据
- C++ 图像RGB直方图特征提取
- 解决ADB server didn't ACK(亲测)
- 如何利用旋转矩阵得到四元数
- Generating Artifacts问题解决汇总