singleton1 spring bean scope Spring framework에서 중요한 개념 중 하나로 Bean의 scope를 설정하여 객체의 생성과 사용에 대한 제어를 할 수 있다. Spring에서 제공하는 Bean scope의 5가지 유형에 대해서 기록한다. Spring Bean Scope Singleton (default) Prototype Request Session Application 5가지 scope 유형 중에서 Singleton과 Prototype은 표준 범위라고 하며 ApplicationContext에서 사용할 수 있다. Requst, Session, Application 유형은 웹 기반 애플리케이션에서만 사용할 수 있다. Singleton Scope 단 하나의 인스턴스만 생성할 수 있는 클래스는 singleton 이다. 애플리케이션.. 스프링부트 2023. 10. 3. 이전 1 다음 💲 추천 글