Bootstrap your ApplicationContext

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:”

Write a Reply or Comment

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