Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 코딩테스트
- DFS
- 코드품앗이
- issue
- 코테
- cos pro
- AndroidStudio
- Algorithm
- 안드로이드스튜디오
- cos
- DFS와BFS
- 분할정복
- django
- C++
- 동적계획법
- Flutter
- BAEKJOON
- 동적계획법과최단거리역추적
- cos pro 1급
- Vue
- 파이썬
- 백준
- DART
- android
- codingtest
- vuejs
- 안드로이드
- 알고리즘
- 개발
- Python
Archives
- Today
- Total
Development Artist
[Issue, Spring] Type definition error: [simple type, class com.test.user.domain.dto.UserJoinRequest] 본문
TroubleShooting/Spring Issue
[Issue, Spring] Type definition error: [simple type, class com.test.user.domain.dto.UserJoinRequest]
JMcunst 2023. 9. 1. 16:56728x90
반응형
이슈
User 관련 회원가입 API를 만들고 테스트하는 중 API를 날리면 다음과 같이 Response가 오는 것을 확인.
해결
1안 또는 2안 중 채택하여 해결.
1. 해당 DTO의 생성자 생성
@AllArgsConstructor
@Getter
public class UserJoinRequest {
private String userName;
private String password;
public UserJoinRequest() {}
}
2. lombok을 사용한다면, @NoArgsConstructor 애노테이션 붙여준다.
원인
- 아래와 같이 UserJoinRequest의 생성자가 없어서 발생한 문제였다.
728x90
반응형
'TroubleShooting > Spring Issue' 카테고리의 다른 글
[Issue, Spring] Unable to start web server, jakarta.servlet.http.HttpSessionContext (0) | 2023.08.19 |
---|
Comments