Christopher Anabo
Christopher Anabo
Senior Tech Lead
Christopher Anabo

Notes

Sprinboot Anotations

Sprinboot Anotations

Sprinboot Annotations

Annotation Package Example

@AllArgsConstructor

import lombok.AllArgsConstructor;

  • Meaning you dont need to explicitly creat the constructor to inject the object via constructor

@RestController    
@Controller    
@ResponseBody    
@ResponseEntity    

@ControllerAdvice

@ExceptionHandler

@RestControllerAdvice

   
     
     
@RequestEntity    
@RequestHeader + @RequestBody    
@Valid