일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 스프링부트
- MSA
- 자바스크립트
- 오라클
- 스프링시큐리티
- pygame
- oracle
- sap ERP
- LeetCode SQL
- java8
- SAP ABAP
- javascript
- Leetcode
- js
- SQL 문제풀이
- 스프링
- 프로그래머스
- 코틀린 클래스
- mysql
- Spring
- 구글로그인
- python
- springboot
- kotlin 클래스
- spring boot
- SQL프로그래머스
- SQL
- oauth2
- 스프링부트 채팅서버
- 자바 스트림
Archives
- Today
- Total
목록spring annotation (1)
웅겹살의 프로그래밍 삼매경

@ComponentScan @Component와 @Service, @Repository, @Controller, @Configuration이 붙은 클래스 Bean들을 찾아서 Context에 bean등록을 해주는 Annotation이다. @Component Annotation이 있는 클래스에 대하여 bean 인스턴스를 생성 ApplicationContext.xml에 과 같이 xml에 bean을 직접등록하는 방법도 있고 위와 같이 Annotation을 붙여서 하는 방법도 있다. base-package를 넣으면 해당 패키지 아래에 있는 컴포넌트들을 찾고 그 과정을 spring-context-버전(4.3.11.RELEASE).jar에서 처리한다. Spring에서 @Component로 다 쓰지 않고 @Reposi..
Spring
2022. 6. 14. 14:25