1. 기존의 AppConfig 를 이용해 객체를 생성했을 때 memberRepository1 = hello.core.member.MemoryMemberRepository@2de23121 memberRepository2 = hello.core.member.MemoryMemberRepository@63475ace Process finished with exit code 0 스프링 애플리케이션은 대부분 웹 애플리케이션이기 때문에 여러 고객이 동시에 요청을 한다. (계속 요청) 위와 같은 이유로 AppConfig를 사용해서 객체를 생성하면 요청이 올때마다 새로운 객체가 생성하는 단점이 있다. 이를 해결하기 위해 Singleton 패턴을 사용해서 1개만 생성해서 공유하는 방법을 사용하면 좋다. 2. 싱글톤 패턴을..