Free Lines Arrow
본문 바로가기
728x90

Spring83

[Spring] Annotation Annotation 어노테이션의 종류와 개념을 알아본다. 이전에 정리를 했던 글인데 참고하면 좋을 것 같다. https://vprog1215.tistory.com/47?category=989392 [Spring] ComponentScan1 - 기초 ComponentScan 를 왜 사용할까? 이번 주제는 Component 와 의존성 주입이다. 자동 주입이라고 생각하면 편할것 같다. @ComponentScan AutoAppConfig 클래스를 만들었다. package hello.core; import org.springfra.. vprog1215.tistory.com 많이 쓰이는 어노테이션 종류 @Configuration: 설정파일에 지정하는 어노테이션 @ComponentScan: 컴포넌트를 스캔 하는 어노.. 2021. 7. 23.
[Spring] Bean Scope Web: part4 웹스코프 특징 웹 환경에서만 동작 스프링이 스코프의 종류 시점까지 관리 종료메서드 호출됨. 웹스코프종류 Request: HTTP 요청 하나가 들어오고 나갈 때 까지 유지되는 스코프 HTTP 요청마다 빈 인스턴스 생성 및 관리 된다. Session: HTTP Session과 동일한 생명주기를 가지는 스코프 Application 서블릿 컨텍스트 와 동이한 생명주기를 가지는 스코프 websocket: 웹 소켓과 동일한 생명주기를 가지는 스코프 request 당 할당 되는 request scope 그림예제 Request 스코프 예제 만들기 준비 웹 환경 추가 build.gradle 에 추가 // web 라이브러리 추가 implementation 'org.springframework.boot:spring-boot.. 2021. 6. 15.
[Spring] Bean Scope Prototype: part3 싱글톤과 프로토타입을 같이 사용했을때 문제점 해결 앞에서 싱글톤과 프로토타입을 같이 사용하면 발생되는 문제점을 봤다. https://vprog1215.tistory.com/79 [Spring] Bean Scope Prototype: part2 싱글톤과 프로토타입을 같이 사용했을때 문제점 Bean Scope Prototype: Part1 은 아래 페이지에서 확인하자. https://vprog1215.tistory.com/71 [Spring] Bean Scope Prototype: part1 Bean Scope Prototype: part.. vprog1215.tistory.com Provider 로 해결하는 방법을 알아보자 Spring 의 Provider 기능 사용. 스프링에서 제공해 주는 Provider.. 2021. 6. 14.
[Spring] Bean Scope Prototype: part2 싱글톤과 프로토타입을 같이 사용했을때 문제점 Bean Scope Prototype: Part1 은 아래 페이지에서 확인하자. https://vprog1215.tistory.com/71 [Spring] Bean Scope Prototype: part1 Bean Scope Prototype: part1 Bean Scope의 종류중 하나인 ProtoType 을 알아보자 Bean Scope의 정의는 아래 페이지를 참고하자. https://vprog1215.tistory.com/70?category=989392 [Spring] Bean Scope Bean Sco.. vprog1215.tistory.com 싱글톤과 프로토 타입을 같이 사용했을때 문제점을 알아보자. 싱글톤빈 안에 프로토타입 빈이 있음. 프로토타입 빈.. 2021. 6. 12.
728x90
반응형