解决跨域问题

This commit is contained in:
liukai
2024-08-29 16:23:01 +08:00
parent a956a5080a
commit 846d89da2b
13 changed files with 18 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ package com.realtime.protection.server.nodetree;
import com.realtime.protection.configuration.response.ResponseResult;
import lombok.extern.slf4j.Slf4j;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -13,7 +14,7 @@ import java.util.List;
//李福连
@CrossOrigin(origins = "*")
@RestController
@RequestMapping("/nodeTree")
@Slf4j