예제 #1
0
 public static void main(String[] args) {
   try {
     final AnnotationConfigApplicationContext applicationContext =
         new AnnotationConfigApplicationContext("tw.base.stereotype");
     applicationContext.setScopeMetadataResolver(
         new AnnotationScopeMetadataResolver(ScopedProxyMode.TARGET_CLASS));
     applicationContext.getBean(MyRepository.class).doSomeThing();
   } catch (SQLException e) {
     System.err.println(e.getClass().getName());
   }
 }