Back Forum Reply New

JavaConfig in Spring 3.0 RC3 issue

pany.config.JavaConfiglt;/param-valuegt;
lt;/context-paramgt;   lt;listenergt;   lt;listener-classgt;       org..web.context.ContextLoaderListe  ner   lt;/listener-classgt;
lt;/listenergt;

But in Spring 3.0 there is no org..config.java.context.JavaConfig  WebApplicationContext. Any idea how to config javaconfig within Spring 3.0 in a web project?

Thanks!

pany.config.JavaConfig.

Spring JavaConfig was integrated into the core for Spring 3, and some of the naming conventions have been changed.  You will want to use AnnotationConfigWebApplicationContext

That is what I figured but couldn't find that class in the javadoc api. I saw the name change in SVN, strange...

The API is changing at a mile a minute right now.  I had a similar problem in which my Maven configuration was still pointing to 3.0.0.M3, which did not include these changes.  Updating it to 3.0.0.RC3 did the trick.

Thank you Jamestastic. The AnnotationConfigWebApplicationContext works great for this purpose.

Glad to hear it!
¥
Back Forum Reply New