diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java index 3341174..265d20f 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java @@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.http.codec.multipart.Part; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.*; +import org.springframework.web.context.annotation.RequestScope; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; @@ -275,7 +276,9 @@ public class ArticleController { * @return true 可以使用,false已经存在 */ @GetMapping("getTitleYn") - public BaseResponse getTitleYn(@RequestParam(required = false) Integer aid, Integer iid,String title){ + public BaseResponse getTitleYn(@RequestParam(required = false) Integer aid, + @RequestParam(required = true) Integer iid, + @RequestParam(required = true) String title){//加@RequestParam 能解决乱码问题 BaseResponse baseResponse=new BaseResponse(); try { QueryWrapper queryWrapper=new QueryWrapper<>();