- 동작흐름. 1. beanfactory 에서 후보 bean을 가져온다. (by type) - @Qualifier 지정자가 있을 경우, 후보 bean을 지정자와 매치하는 것만 찾음 2-0. 후보가 없으면, 에러 끝.2-1. 1개 일 경우, 반환 끝.2-2. 2개 이상 일 경우. (fallback 상태)이런 경우, fallback 상태로 처리 (is smart?) 2-2-1 각 후보 bean 에서 primary 표시자 유무를 찾는다. (@Primary annotation)있는 경우, primary 로 지정된 bean 을 반환. (2개 이상 primary 로 지정 하면?) 2-2-2primary 조차 없는 경우.filedname(변수명)과 동일한 bean id가 있다면 반환. 2-2-3그것 조차 없으면, 에..
1.우선 라이브러리 부터 추가.maven > pom.xml org.springframework.retryspring-retry1.0.3.RELEASE 2.실제 적용 코드> blabla.java public class blabla implements InitializingBean {static final String KEY = "testKey";private RetryTemplate retryTemplate; private RetryCallback retryCallback;private Client client; @Autowiredpublic blabla(Client client) {this.client= client;} public void setRetryTemplate(RetryTemplate retr..