Components and Configurations

@Component

@RestController

@Service

@Repository

@Configuration


RestController used in

Restful Api routing

@RequestMapping

@PostMapping

@GetMapping

@DeleteMapping

@PutMapping

@PatchMapping


@PathVariable

@RequestParam

@RequestBody


Lombok

@Getter/@Setter

@Builder

@NoArgsConstructor

@RequiredArgsConstructor

@AllArgsConstructor

@Data

@Value(staticConstructor=”of”)

@ToString


JSON

@JsonIgnoreProperties(ignoreUnknown = true)

@JsonInclude(value = JsonInclude.Include.NON_NULL)


JPA

@Entity

@Id

@GeneratedValue(strategy = GenerationType.IDENTITY)

@Column

@CreatedDate

@LastModifiedDate


Log

@Slf4j


Swagger

@Api()

@ApiOperation()


test

@Test

@Mock


Data validation

@Valid

@Email

@Range

@Min

@Max

@NotNull

@Size