2017-02-16 177 views
0

在我的弹簧配置中,当我开始测试时,我正在加载包含所有cxf服务的文件。有时候,我不想在我的测试中加载这些服务,因为没有必要,我希望能够快速工作。带条件的弹簧文件配置

我已经以这种方式加载的所有我的CXF服务:

<import resource="classpath:services-app-ib-es-test.xml" /> 

我可以改变这一行读它只能在有条件的办法吗?事情是这样的:

<if javavm param loadcxf = true> 
    <import resource="classpath:services-app-ib-es-test.xml" /> 
</if> 

编辑:我使用的弹簧芯2.55

感谢

回答