싱글톤 컨테이너

썸네일

웹 애플리케이션에서 싱글톤이 좋은 이유

싱글톤 패턴

싱글톤 예제
SingletonService singletonService = SingletonService.getInstance();

싱글톤 패턴 주의점

싱글톤 패턴 단점

싱글톤 컨테이너

@Configuration 어노테이션과 싱글톤

AppConfig.class
memberService1 == memberService2 test
memberService1 == memberService2

@Configuration @Bean

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store