由于某些原因,我得到的是以下代码中不可序列化的任务异常。我是运行在火花本地使用sbt测试。class NQTest extends FeatureSpec with Matchers with Serializable { val sc = new SparkContext(conf)
val testData
我试图通过一个简单的PUT请求上传一个文件,当发出请求的代码块在组件中时,它会上传很好-没有错误。但是,当代码块位于服务中时,PUT变成了选项请求,我得到了以下错误:
Failed to load <MY-URL>: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4