AnnotationConfig*ApplicationContext support in IntelliJ IDEA 11.1

Posted on by serega.vasiliev

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?

    Comments below can no longer be edited.

    6 Responses to AnnotationConfig*ApplicationContext support in IntelliJ IDEA 11.1

    1. Sorin says:

      February 24, 2012

      This looks just great!

    2. Ivan says:

      February 24, 2012

      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:

      February 24, 2012

      Ivan,
      Please submit a CPU snapshot as described in http://devnet.jetbrains.net/docs/DOC-192

    4. anders says:

      February 24, 2012

      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:

      June 22, 2012

      Can we get both projects to play with them?

    6. Anyul Rivas says:

      November 15, 2018

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

    Subscribe

    Subscribe for updates