Free Lines Arrow
본문 바로가기
728x90

전체 글380

API를 활용하자 1. API를 잘 이용하는 것이 중요하다고 생각한다. 말 그대로 어떻게 사용하는지 나와 있기 때문이다. 구글링도 좋지만 웬만하면 API를 보는것을 추천한다. 처음에 힘들지는 몰라도 공부가 되고 정확하고 잘 쓸수 있기 때문이다. java8: https://docs.oracle.com/javase/8/docs/api/index.html Java Platform SE 8 docs.oracle.com C++: www.cplusplus.com/reference/functional/plus/ plus - C++ Reference class template std::plus template struct plus; Addition function object class Binary function object clas.. 2021. 5. 10.
[Java] ArrayList ArrayList 컬렉션 클래스. ArrayList를 먼저 사용해서 정리해 보지만. 가장중요한 컬렉션의 개념과 구조를 다음에 정리해야겠다. 왜냐? 기초가 중요하기 떄문이다. 어디서 파생되었고 원리를 알아야 잘 쓸수 있기 때문이다. ArrayList란? 컬렉션 프레임웍 중에 많이 사용되는 컬렉션 클래스. 특징 List 인터페이스를 구현 데이터의 저장순서가 유지된다. 중복을 허용한다. 중요점 vector 보다 ArrayList를 사용하는 것을 권장한다. vector는 호환성 때문에 남겨 두었다고 한다. 이래서 기초와 API를 보는것이 중요하다. 초기화 및 생성하기 // 기본으로 10 크기로 생성 타입은 String 생성자 생략가능 ArrayList stringList1 = new ArrayList(); //.. 2021. 5. 10.
[Spring] ComponentScan2 - Annotation만들기 Annontation 만들어 보기 나만의 Annontation을 만들어 class 에 Annontation을 달아보자 필터를 이용해서 Container에 등록할지 안할지 지정해보자. ComponentScan 에서 사용할수 있는 필터 종류 includeFilters: 컴포넌트 스캔 대상을 추가로 지정한다. excludeFilters: 컴포넌트 스캔에서 제외할 대상을 지정한 Annotation1 package hello.core.scan.filter; import java.lang.annotation.*; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyExcludeComponent { }.. 2021. 5. 8.
[Spring] ComponentScan1 - 기초 ComponentScan 를 왜 사용할까? 이번 주제는 Component 와 의존성 주입이다. 자동 주입이라고 생각하면 편할것 같다. @ComponentScan AutoAppConfig 클래스를 만들었다. package hello.core; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; // 설정 어노테이션지정 @Configuration // 자동으로 스캔하여 bean에 등록 // filter를 이용하여 제외 가능 // 해당 필터는 .. 2021. 5. 8.
728x90
반응형