1

I have all my configuration details like (queries bean, url mapping etc) in one file (businesscaliber-servlet.xml) but i want separate out how do i do?

1 Answer 1

4

Using

<import resource="..."/> 

See documentation. So in your businesscaliber-servlet.xml file, you could have:

<beans> <import resource="queries-bean.xml"/> <import resource="url-mappings.xml"/> ... etc ... </beans> 

Spring doesn't care which beans go into which file, they all get combined at runtime.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.