Features Tutorials

AnnotationConfig*ApplicationContext support in IntelliJ IDEA 11.1

From this short post you’ll find out (and see) how to:

  • configure your non-XML Spring contexts using @Configuration classes, AnnotationConfigApplicationContext or AnnotationConfigWebApplicationContext
  • set-up “active” profiles for annotation-based configurations
  • If you use AnnotationConfigWebApplicationContext then simply add your configurations or packages-to-scan to “contextConfiguration” context-param of your web.xml and these files will be autodetected by IntelliJ IDEA.

    or add your @Configuration classes to a new annotation-based fileset if your application uses AnnotationConfigApplicationContext.

    So, what do you think?

    image description

    Discover more