我在一個文件中配置了:applicationContext.xml。我有數據源,會話工廠和其他兩個bean。Spring上下文繼承
我想更改配置是這樣的:
applicationContext.xml -> parent
,其中包含數據源,會話工廠bean1.xml -> children
,從的applicationContext繼承和包含bean1bean2.xml -> children
只有信息,從的applicationContext繼承並只包含有關bean2的信息
我該怎麼做?我發現有關繼承beans的信息,但我想要另外三個文件不是一個