Bootstrap your ApplicationContext

These are the common used applicationContext to bootstrapping your apps. Let’s say your applicationContext.xml are place under this folderĀ [Project]/src/main/resources/.

  • AnnotationConfigApplicationContext
  • ClassPathXmlApplicationContext
    Always start from your classpath.
  • FileSystemXmlApplicationContext
    Always start from your project root folder.
  • GenericXmlApplicationContext
    You can use either file path or classpath by specified “file://” or “classpath:”

Bootstrap your ApplicationContext

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.