I have two projects named simple-core-impl and simple-core-web .
Both projects are spring based , and both have the parent name of the simple-core project.
I have simple-impl-config.xml in a simple-core-impl and simple-web-config.xml in simple-impl-config.xml .
I have a bean that has a class: simple service , which has one method that returns the message "hello World" to me.
I want to import simple-impl-config.xml into simple-web-config.xml so that the bean is available in my controller, which is in the simple-core-web project.
simple-core-web project has a simple-core-impl project bank.
So, please tell me, how can I import spring-config.xml one project into spring-config.xml another project so that all the beans of the first are accessible in another project, just by importing?
I do not want to rewrite all the beans.
java spring
Chitresh Feb 25 '11 at 4:22 2011-02-25 04:22
source share