Browse Source

出栏规模跨域修改

wwh 2 years ago
parent
commit
6c9c48d046

+ 2 - 4
huimv-cattle/src/main/java/com/huimv/cattle/controller/OverviewController.java

@@ -19,11 +19,8 @@ import org.springframework.http.HttpEntity;
 import org.springframework.http.HttpHeaders;
 import org.springframework.http.MediaType;
 import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.*;
 
-import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.client.RestTemplate;
 
 import javax.annotation.Resource;
@@ -40,6 +37,7 @@ import java.util.Map;
  * @author zn
  * @since 2022-12-15
  */
+@CrossOrigin
 @RestController
 @RequestMapping("/v1.0.0/overview")
 public class OverviewController {