Skip to content

Commit

Permalink
添加跨域请求处理
Browse files Browse the repository at this point in the history
  • Loading branch information
TreasureJade committed Dec 20, 2019
1 parent 0ceed51 commit 7362ceb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,6 +16,7 @@
@RestController
@RequestMapping("/comment")
@Api(tags = "用户评论接口 需要登录")
@CrossOrigin
public class CommentController {

@Autowired
Expand Down

0 comments on commit 7362ceb

Please sign in to comment.