Giter Site home page Giter Site logo

annotation's Introduction

Spring Boot Annotations

시작 전 어노테이션 알아두기

Annotation 의미
@SpringBootApplication Spring boot application 으로 설정
@Controller View를 제공하는 controller로 설정
@RestController REST API를 제공하는 controller로 설정
@RequestMapping URL 주소를 맵핑
@GetMapping Http GetMethod 주소 맵핑
@PostMapping Http PostMethod 주소 맵핑
@PutMapping Http PutMethod 주소 맵핑
@DeleteMapping Http DeleteMethod 주소 맵핑
@RequestParam URL Query Parameter 맵핑
@RequestBody Http Body를 Parsing 맵핑
@Vaild POJO java class의 검증

Annotation 의미
@Configration 1개 이상의 bean을 등록 할 때 설정
@Component 1개의 Class 단위로 등록 할 때 사용
@Bean 1개의 외부 library로부터 생성한 객체를 등록 시 사용
@Autowired DI를 위한 곳에 사용
@Qualifier @Autowired 사용시 bean이 2개 이상 일때 명시적 사용
@Resource @Autowired + @Qualifier의 개념으로 이해
@Aspect AOP 적용시 사용
@Before AOP 메소드 이전 호출 지정
@After AOP 메소드 호출 이후 지정 예외 발생 포함
@Around AOP 이전/이후 모두 포함 예외 발생 포함
@AfterReturning AOP 메소드의 호출이 정상일 때 실행
@AfterThrowing AOP시 해당 메소드가 예외 발생시 지정

annotation's People

Contributors

bin612 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.