From 5bc58e159a764442b3e19c38d1baaed7f02d8421 Mon Sep 17 00:00:00 2001 From: Ziin Date: Wed, 11 Jun 2025 14:54:08 +0800 Subject: [PATCH] =?UTF-8?q?HostInfoController.java=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B7=A8=E5=9F=9F=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springbootinit/controller/HostInfoController.java | 6 ++---- src/main/resources/application.yml | 8 +------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/yupi/springbootinit/controller/HostInfoController.java b/src/main/java/com/yupi/springbootinit/controller/HostInfoController.java index 6ca9091..c32cb51 100644 --- a/src/main/java/com/yupi/springbootinit/controller/HostInfoController.java +++ b/src/main/java/com/yupi/springbootinit/controller/HostInfoController.java @@ -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 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 3c661a2..0bc2700 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -60,7 +60,6 @@ mybatis-plus: log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl default-executor-type: batch - global-config: db-config: logic-delete-field: isDelete # 全局逻辑删除的实体字段名 @@ -105,9 +104,4 @@ knife4j: default: api-rule: package api-rule-resources: - - com.yupi.springbootinit.controller -logging: - level: - org: - apache: - ibatis: off \ No newline at end of file + - com.yupi.springbootinit.controller \ No newline at end of file