Tag Archives | spring javacofig

Spring 3 Load Multiple Configuration using @Import

This example show you how to configure multiple Java-based configuration files with @Import. The @Import annotation allows for loading @Bean definitions from another configuration class. XML with bean definitions: AppContext configuration class that import multiple configuration: You can load single file like this: You can download the source code of this example here.

Continue Reading ... Comments { 0 }

Spring 3 Bean Configuration

In this article, you will learn to write Spring beans and configure them using pure Java based configuration instead of using XML. XML with bean definitions: AppContext configuration class that contains bean definitions: @Configuration indicates that a class declares one or more Bean methods and may be processed by the Spring container to generate bean [...]

Continue Reading ... Comments { 0 }