title: The type org.springframework.beans.factory.support.DefaultListableBeanFactory cannot be resolved
body: <p><a href="https://i.stack.imgur.com/dITTh.png" rel="nofollow noreferrer">Config build path</a>    package spring.java.config;</p>
  
  <pre><code>import java.util.Date;
  
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  import org.springframework.context.ApplicationContext;
  import org.springframework.context.ConfigurableApplicationContext;
  import org.springframework.context.annotation.AnnotationConfigApplicationContext;
  
  import spring.java.domail.BlogPost;
  import spring.java.domail.DataSource;
  import spring.java.services.BlogpostService;
  
  public class MainApplication {
      private static final Logger LOGGER = LoggerFactory.getLogger(MainApplication.class);
  
      public static void main(String[] args) {
      //  ApplicationContext applicationContext = new AnnotationConfigApplicationContext(JavaConfig.class);
          ApplicationContext applicationContext = new AnnotationConfigApplicationContext(JavaConfig.class);
          BlogpostService blogPostService = applicationContext.getBean(BlogpostService.class);
          // BlogpostService blogPostService =(BlogpostService)
          // appContext.getBean("blogpostSrervice");
  
          BlogPost post = new BlogPost();
          post.setContent("Hello Sajan");
          post.setDraft(true);
          post.setId(10);
          post.setPublisgDate(new Date());
          post.setTitle("Blog Post Title");
          blogPostService.savePost(post);
  
          DataSource dataSource = applicationContext.getBean(DataSource.class);
  
          LOGGER.debug("dataSource: url " + dataSource.getUrl());
          LOGGER.debug("dataSource: username " + dataSource.getUsername());
          LOGGER.debug("dataSource: password " + dataSource.getPassword());
  
          ((ConfigurableApplicationContext) applicationContext).close();
      }
  
  }
  </code></pre>
  
  <p>Got Error while Running Application.
  I also Attach Screen Shorts below<a href="https://i.stack.imgur.com/7yrN5.png" rel="nofollow noreferrer">Click Here Fore Scrren Short</a>
  Give me Solution for this Error.
  I face this Error while i m transfer my project to another computer.</p>