Bean Scope Spring에는 6가지 bean scope이 있지만 기본적으로 Bean을 Singleton으로 관리한다. IoC 컨테이너 생성 시점에 Bean을 생성하는 이유(Bean Scope이 싱글톤일때) You can generally trust Spring to do the right thing. It detects configuration problems, such as references to non-existent beans and circular dependencies, at container load-time. Spring sets properties and resolves dependencies as late as possible, when the bean is actually cr..
결론부터말하면 Interface는 abstract method로만 구성된 클래스로써 추상체로 역할을 하며 구현체와 호출하는 쪽 사이의 dependency를 느슨하게 한다. 특히 의존성을 역전(Dependency Inversion)시킴으로써 객체 간 결합도(coupling)를 줄인다. [예제1] public class UserService implements Login{ private KakaoLogin login; private NaverLogin login; // 이하 생략 } [예제2] public class UserService implements Login { private Login login; public UserService(Login login) { this.login = login; } ..
- Total
- Today
- Yesterday
- K8s
- 카프카
- rolling update
- Linux
- ci/cd
- jvm
- Kubernetes
- 코틀린
- 쿠버네티스
- db
- docker
- Java
- Controller
- Stream
- golang
- ubuntu
- container
- 우분투
- GitOps
- go
- Non-Blocking
- kafka
- RDB
- CICD
- LFCS
- argocd
- helm
- 컨트롤러
- spring
- github actions
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |