userimage

Spring Configuration

I have two configuration files in spring in my application.

How i refer bean from one configuration file to another?

can any one suggest?

userimage

When you are developing any spring based complex application, the size of the xml based configuration file grows unmanageable. It is a standard practice to split the configuration file into multiple small configuration files based on functionality.

 we can achieve this by using <import> tag.

example:

<import resource="beans-config.xml" />  

  <import resource="databaseProperties-config.xml" />

Answer is