|
@@ -9,7 +9,6 @@ import com.tzld.videoVector.model.vo.recall.RecallResultVO;
|
|
|
import com.tzld.videoVector.model.vo.recall.VideoBasicVO;
|
|
import com.tzld.videoVector.model.vo.recall.VideoBasicVO;
|
|
|
import com.tzld.videoVector.service.recall.VectorRecallTestService;
|
|
import com.tzld.videoVector.service.recall.VectorRecallTestService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -21,11 +20,10 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* 向量召回测试 Controller
|
|
* 向量召回测试 Controller
|
|
|
* 提供给前端测试页面使用,只新增接口,不修改现有接口逻辑。
|
|
* 提供给前端测试页面使用,只新增接口,不修改现有接口逻辑。
|
|
|
*
|
|
*
|
|
|
- * MVP 不加鉴权,@CrossOrigin 全开。
|
|
|
|
|
|
|
+ * MVP 不加鉴权。CORS 由全局拦截器 CrosDomainAllowInterceptor 统一处理。
|
|
|
*/
|
|
*/
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/recallTest")
|
|
@RequestMapping("/recallTest")
|
|
|
-@CrossOrigin(origins = "*")
|
|
|
|
|
public class VectorRecallTestController {
|
|
public class VectorRecallTestController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|