apachecamel-Spring概要文件

apachecamel-Spring概要文件,spring,apache-camel,Spring,Apache Camel,您好,有没有ApacheCamel的博客文章使用spring配置文件处理不同的DB属性的例子 我试着像下面那样 <beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xm

您好,有没有ApacheCamel的博客文章使用spring配置文件处理不同的DB属性的例子

我试着像下面那样

<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
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.xsd   http://www.springframework.org/schema/context    http://www.springframework.org/schema/context/spring-context.xsd           http://www.springframework.org/schema/util    http://www.springframework.org/schema/util/spring-util.xsd           http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<camelContext id="Demo" xmlns="http://camel.apache.org/schema/spring">

<Db properties >


<beans:beans profile="dev">
        <context:property-placeholder properties-ref="properties"  ignore-unresolvable="true"/>
        <util:properties id="properties" location="classpath:dev.properties"/>
         <context:component-scan base-package="com.demo.environment" />


</beans:beans>


<beans:beans profile="test">
        <context:property-placeholder properties-ref="properties"  ignore-unresolvable="true"/>
        <util:properties id="properties" location="classpath:test.properties"/>
         <context:component-scan base-package="com.demo.environment" />


  </beans:beans>

</beans:beans>

它的给出是由以下原因引起的:org.xml.sax.SAXParseException:cvc complex type.2.4.a:发现以元素“bean”开头的无效内容。应为“{”“:bean}”之一。
这里有人能帮忙吗,我正在使用camel 2.17.3版本

您没有关闭
camelContext
标记。