seongjihye1994 / springcore_basic Goto Github PK
View Code? Open in Web Editor NEW스프링 핵심 원리에 대하여
스프링 핵심 원리에 대하여
조회한 빈이 모두 필요할 때 사용하는 List 와 Map 사용 방식 및 용도(어떤 경우에 사용하는지) - 클라이언트가 할인 정책을 정할 수 있을 경우
스프링 컨테이너를 생성하면서 파라미터로 넘긴 클래스는 스프링 빈으로 등록된다. 즉 스프링 컨테이너는 생성과 동시에 스프링 빈을 등록할 수 있다.
스프링 빈 스코프에 대해
싱글톤 스코프와 프로토타입 스코프 차이점
웹 스코프 종류
Provider와 프록시에 대해
스프링 컨테이너에 등록된 빈 여러 방법으로 조회
스프링 컨테이너가 빈을 스프링 컨테이너에 등록하는 방법과 스프링 BeanDefinition 메타정보에 관해
싱글톤을 왜 쓰는지?
싱글톤의 문제점
스프링 컨테이너를 이용한 싱글톤 컨테이너
스프링 컨테이너는 싱글톤 레지스트리다.
따라서 스프링 빈이 싱글톤이 되도록 보장해주어야 한다.
그런데 스프링이 자바 코드까지 어떻게 하기는 어렵다.
그래서 스프링은 클래스의 바이트코드를 조작하는 라이브러리를 사용한다.
스프링이 CGLIB라는 바이트코드 조작 라이브러리를 사용해서 AppConfig 클래스를 상속받은 임의의 다른 클래스를 만들고, 그 다른 클래스를 스프링 빈으로 등록한다.
@configuration 을 적용하지 않고, @bean 만 적용하면 어떻게 될까?
@bean만 사용해도 스프링 빈으로 등록되지만, 싱글톤을 보장하지 않는다.
컴포넌트 스캔과 의존관계 자동 주입부터 컴포넌트 스캔 필터 적용, 자동 빈 주입과 수동 빈 주입에서의 충돌, 의존관계 주입 4가지 방법에 대해
AppConfig 파일을 @configuration 어노테이션을 사용하여 스프링 설정 클래스로 등록(지정)하였다.
또한, AppConfig 클래스 내부의 메소드들을 @bean 어노테이션을 사용하여 스프링 컨테이너 안에 스프링 빈으로 지정하였다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.