title: While taking Bean out of ApplicationContext, there was an error that the MemberRepository did not have an error occurred
body: <p>I want to declare <code>ApplicationContext</code> and take out <code>Bean</code> using getBean.</p>
  <p>But I got this error.</p>
  <pre><code>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'inactiveMemberJobConfig': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.capston.chatting.repository.MemberRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
  
  Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.capston.chatting.repository.MemberRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
  </code></pre>
  <p>I expect that I have already used @Repository to register the MemberRepository as an bean</p>
  <p>However, the error log shows that there is no MemberRepository.</p>
  <p>I don't understant where is wrong</p>
  <p>Below is my code.</p>
  <pre><code>AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(InactiveMemberJobConfig.class);
  Job inactiveMemberJob = (Job) ac.getBean(&quot;inactiveMemberJob&quot;);
  </code></pre>
  <pre><code>@Repository
  public interface MemberRepository extends JpaRepository&lt;Member, Long&gt; {
  
      @Query(&quot;select m from Member m where m.loginId = :loginId&quot;)
      Member findMemberByLoginId(@Param(&quot;loginId&quot;) String loginId);
  
      List&lt;Member&gt; findByUpdateDateBeforeAndStatusEquals(LocalDateTime localDateTime, MemberStatus status);
  }
  </code></pre>
  <pre><code>@Slf4j
  @RequiredArgsConstructor
  @Configuration
  public class InactiveMemberJobConfig {
  
      private final MemberRepository memberRepository;
  
      //...
  }
  </code></pre>