| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- jface
- 자바
- 스프링
- JPA
- effective
- Spring
- node
- 리뷰
- 백준
- error
- 자바스크립트
- Spring Boot
- 맛집
- javascript
- MySQL
- kibana
- 이펙티브
- 알고리즘
- boot
- RCP
- elasticsearch
- java8
- java
- 엘라스틱서치
- 독후감
- nodejs
- Web
- 인터페이스
- 후기
- Git
Archives
- Today
- Total
wedul
lombok 사용시 Generating equals/hashCode implementation 에러 수정방법 본문
반응형
lombok 사용할 때 다음과 같은 에러를 본적이 있을 것이다.
[에러내용]
Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
이 에러는 상속을 받은 자식클래스에 발생하는 에러로서 다음과 같이 해결해줄 수 있다
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | package com.wedul.wedulpos.user.dto; import org.apache.ibatis.type.Alias; import com.wedul.common.dto.CommonDto; import com.wedul.common.util.HashUtil; import lombok.Data; import lombok.EqualsAndHashCode; /** * User정보 Dto * * @author wedul * @date 2017. 11. 4. * @name UserDto */ @Alias("UserDto") @Data @EqualsAndHashCode(callSuper=false) public class UserDto extends CommonDto { private String email; private String password; private boolean isadmin; public UserDto() {} public UserDto(String email) { this.email = email; } public UserDto(String email, String password) { this.email = email; this.password = password; } public UserDto(String email, String password, boolean isadmin) { this.email = email; this.password = password; this.isadmin = isadmin; } public String getEcPassword() { return HashUtil.sha256(this.password); } } | cs |
반응형
'web > Spring' 카테고리의 다른 글
| Spring에서 node_modules 하위 폴더 까지 모두 보이지 않도록 filter 설정하기 (0) | 2018.06.12 |
|---|---|
| Spring에서 get으로 한글 데이터를 requestparam으로 받을 때 깨지는 현상 (0) | 2018.06.07 |
| mac환경에서 spring boot에 lombok 설치하기 (0) | 2018.06.03 |
| Spring, spring-boot의 mvc 다양한 설정 설명 (1) | 2018.06.03 |
| Spring framework에서 html을 pdf만들어 다운로드 하기 (29) | 2018.05.27 |