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.

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

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

    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?

    Leave a Reply

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

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">