Spring-All-Module.xml : Base 파일  설정

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
	<import resource="common/Spring-Common.xml"/>
        <import resource="connection/Spring-Connection.xml"/>
        <import resource="moduleA/Spring-ModuleA.xml"/>
  
</beans> 



import 해서 설정한다.

로딩은 

ApplicationContext context = new ClassPathXmlApplicationContext(Spring-All-Module.xml);



 
신고
Posted by jeonguk