component-scan
component-scan public interface DBDao { public abstract List list(); } @Repository //component -scan 이용 생성 public class DBOracleDAO implements DBDao { public List list(){ return Arrays.asList("oracle 홍길동","oracle 이순신"); } } public interface DBService { public abstract List list(); } @Service("myService") public class DBOracleService { @Autowired DBDao dao; public List list(){ return this.dao.lis..
2024.03.11