[Spring, html error] Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]
·
Server/Error
문제 발생 Join email password nickname 회원가입 뒤로가기 @PostMapping("/join") public String join(@RequestBody final @Valid JoinRequest request) { log.info("email = {}, nickname = {}", request.getEmail(), request.getNickname()); try { JoinResponse member = memberService.join(request); } catch (DataIntegrityViolationException | OnlyUAppException e) { throw new OnlyUAppException(ErrorCode.DUPLICATED_MEMBER_IN..
[Spring] @RequestBody 바인딩 시, 기본 생성자(@NoArgsConstructor)의 변덕과 필요한 이유
·
Server/Spring&Spring Boot
사건의 발단 문제의 UserLoginReuqst dto @AllArgsConstructor @Getter public class UserLoginRequest { private String userName; private String password; } 사건 내용 @RequestBody로 데이터를 불러오던 중 Type definition error: [simple type, class com.study.domain.dto.UserLoginRequest]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.study.domain.dto.UserLo..
코드플리
'RequestBody' 태그의 글 목록