@AllArgsConstructor
더보기
더보기
모든 필드를 파라미터로 받는 생성자 생성
@AllArgsConstructor
public class User {
private Long id;
private String name;
}
@NoArgsConstructor
더보기
더보기
파라미터 없는 기본 생성자 생성
@NoArgsConstructor
public class User {
private Long id;
private String name;
}
@RequiredArgsConstructor
'WEB개발 > Spring' 카테고리의 다른 글
| unnamed module of loader org springframework boot loader launch launchedclassloader (0) | 2026.02.03 |
|---|---|
| Actuator (0) | 2026.01.22 |
| AOP @Cacheable @CacheEvict (0) | 2026.01.12 |
| @Transactional (Propagation) (0) | 2025.12.12 |
| [Spring] Request를 처리하는 주석 (Annotation) (0) | 2025.02.21 |