Interface
[Bean] Router 구현
가끔 특정 비지니스 로직에서 주어진 입력에 따라 Bean을 선택적으로 사용하고 싶은 경우가 있다 Interface를 사용하여 해당 인터페이스를 구현한 Bean들을 컬렉션(List or Map)에 넣어 사용할 수 있다 1. Interface public interface SampleInterface { // 임시로 String으로 구현하였으나 Enum으로도 구현 가능하다 boolean isTarget(String targetName); } 2. Implements import org.springframework.stereotype.Component; @Component public class SampleComponent implements SampleInterface { private static fina..