Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Java Spring 中,可以将配置划分为多个 xml 文件,然后使用
<import resource="importedConfig.xml"/>
如何在 SpringPython 中做同样的事情?
虽然似乎没有包含其他资源的选项,但您可以使用多个配置文件初始化 Spring Python:
configs = [ XMLConfig("config-1.xml"), XMLConfig("config-2.xml") ] container = ApplicationContext( configs )
(见spring-python 源码)