Spring에서 자주 사용하는 @Annotation

Yeppi's 개발 일기·2022년 6월 27일
0

Spring&SpringBoot

목록 보기
8/16
post-thumbnail
@종류기능
@SpringBootApplicationSpring boot application 으로 설정
@ControllerView를 제공하는 controller 로 설정
@RestControllerREST API를 제공하는 controller 로 설정
@RequestMapplingURL 주소를 맵핑
@GetMappingHttp GetMethod URL 주소 맵핑
@PostMapplingHttp PostMethod URL 주소 맵핑
@PutMappingHttp PuMethod URL 주소 맵핑
@DeleteMapplingHttp DeleteMehtod URL 주소 맵핑
@RequestParamURL Query Parameter 맵핑
@RequestBodyHttp Body를 Parsing 맵핑
@ValidPOJO Java Class 검증
@Configration1개 이상 bean 등록
@Component1개 이상 Class 단위로 등록
@Bean1개 이상 외부 library로부터 생성한 객체를 등록
@AutowiredDI 적용 시
@Qualifier@Autowired 적용 시 bean 2개 이상일 때 명시적으로 사용
@Resource@Autowired + @Qualifier
@AspectAOP 적용
@BeforeAOP 메서드 이전에 호출
@AfterAOP 메서드 이후에 호출
@AroundAOP 메서드 이전과 이후에 호출(예외 발생 포함)
@AfterReturningAOP 메서드 호출 정상일 때 실행
@AfterThrowingAOP 메서드 예외 발생할 때 실행
profile
imaginative and free developer. 백엔드 / UX / DATA / 기획에 관심있지만 고양이는 없는 예비 개발자👋

0개의 댓글