Skip to content

PutMapping으로 Update 구현 #2

@chulhyun96

Description

@chulhyun96

발생한 문제점

    @PutMapping
    @ResponseBody
    public String edit(@RequestBody Product product) {
       service.edit(product);
       log.info("UpdateProductMethod CALL = {}", product);
        return "success";
    }

구현 후 업데이트를 완료하고 요청을 보냈는데

.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' is not supported]

문제 발생

원인 :
해결 방법 :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions