Java 如果其中一个route builder实例失败,则Spring实例不会启动

Java 如果其中一个route builder实例失败,则Spring实例不会启动,java,spring,spring-mvc,apache-camel,spring-ioc,Java,Spring,Spring Mvc,Apache Camel,Spring Ioc,我们正在通过spring上下文xml初始化2条不同的骆驼路线 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframewo

我们正在通过spring上下文xml初始化2条不同的骆驼路线

<?xml version="1.0" encoding="UTF-8"?>
<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.0.xsd
                http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
    <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
        <routeBuilder ref="DescriptiveInfoRoute"/>
        <routeBuilder ref="DescriptiveInfoRouteV2"/>
    </camelContext>
</beans>

这两个路由都是独立的,每个路由都有自己的输入属性文件来读取输入值。(这意味着两个输入文件应该是必需的,以便两个路由都得到初始化并启动应用程序)。现在我们有了一个新的要求,一个输入文件可能存在,也可能不存在。因此,在spring中是否有任何方法可以成功启动应用程序,即使路由中的一个路由已成功初始化

提前感谢,, 拉哈万