HostInfoController.java 添加跨域注解
This commit is contained in:
@@ -6,10 +6,7 @@ import com.yupi.springbootinit.model.entity.NewHosts;
|
||||
import com.yupi.springbootinit.rabbitMQ.MQSender;
|
||||
import com.yupi.springbootinit.service.HostInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
@@ -21,6 +18,7 @@ import java.util.List;
|
||||
@RestController
|
||||
@RequestMapping("/save_data")
|
||||
@Slf4j
|
||||
@CrossOrigin
|
||||
public class HostInfoController {
|
||||
|
||||
@Resource
|
||||
|
||||
Reference in New Issue
Block a user