버그-2

오늘은 @RequestBody 코멘트를 사용

    @PutMapping("group")
    public int updateSpec(@RequestBody SpecGroup group) {
        System.out.println(group);
        int i = specificationService.updataSpe(group);
        return i;
    }

전면은 JSON 데이터를 통해 온 때문에에 대해 설정하는 것이 필요하다. 프런트 엔드를 통해 오는 경우도 턴 후 해결되지 않습니다. 예 캐릭터 라인 화 개체에 해석하는 것도 가능하다.
지금까지 우리는에 참여하고
@RequestParam
@PathVariable

@RestController
@RequestMapping
@ResponseBody
@ 가져 오기 / 후 / PutMapping

이 주석 및 직렬화. 에서의 서열과 혼동 springify.

추천

출처www.cnblogs.com/macht/p/11762095.html