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?

    This entry was posted in Demos, New Features and tagged , . Bookmark the permalink.

    6 Responses to AnnotationConfig*ApplicationContext support in IntelliJ IDEA 11.1

    1. Sorin says:

      This looks just great!

    2. Ivan says:

      The feature is wonderful and I’m going to miss it in 10.5.4, but unfortunately 11.X is way too slow comparing to 10.5.4. Don’t get me wrong, I’ve been faithful Idea fan for many years, but Nika is something I just can’t handle. I don’t know, why is that. You know better.

    3. yole says:

      Please submit a CPU snapshot as described in

    4. anders says:

      The hibernate facet support doesn’t seem to know about this type of Spring configuration — will that be supported at some point?

    5. metyl says:

      Can we get both projects to play with them?

    6. Anyul Rivas says:

      I’m unable to view the post’s images. They say the site is not accesible

    Leave a Reply

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