diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java index 4a0e3ba..dd15b8c 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java @@ -10,6 +10,7 @@ import com.lyms.talkonlineweb.service.LymsDictService; import com.lyms.talkonlineweb.service.RegionsService; 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.RestController; import java.util.List; @@ -52,7 +53,7 @@ public class RegionsController { * @param dict * @return */ - @GetMapping("saveDict") + @PostMapping("saveDict") public BaseResponse saveDict(LymsDict dict){ BaseResponse baseResponse=new BaseResponse(); boolean f=lymsDictService.save(dict);