diff --git a/src/main/java/com/swpu/uchain/blog/controller/CommentController.java b/src/main/java/com/swpu/uchain/blog/controller/CommentController.java index 7740ef5..0146971 100644 --- a/src/main/java/com/swpu/uchain/blog/controller/CommentController.java +++ b/src/main/java/com/swpu/uchain/blog/controller/CommentController.java @@ -5,10 +5,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; /** * @ClassName CommentController @@ -19,6 +16,7 @@ @RestController @RequestMapping("/comment") @Api(tags = "用户评论接口 需要登录") +@CrossOrigin public class CommentController { @Autowired