2020-11-02FrameWork / 스프링 / 외전Spring - 중복된 빈 등록에 대한 처리 스프링 의존 객체 선택 컴포넌트 Annotation은 싱글톤 범위로 등록되며 같은 타입의 빈이 다른 클래스에서 등록된 경우 에러가 발생한다. 12345678910111213public interface Repository {}@Repositorypublic class Repository2 implements Repository{}@Repository public class Repository3 implements Repository{}@Servicepublic class Service{ @Autowired //등록된 빈이 중복되어 에러 발생 Repository repository;}자세히 보기
2020-11-12Spring Ch 2. 추상화 - 데이터 바인딩 추상화(PropertyEditor, Converter, Formatter)FrameWork / 스프링 / 2장 - 추상화