mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Updated NewDevGuide (markdown)
@@ -94,8 +94,7 @@
|
|||||||
示例:
|
示例:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<!-- properties -->
|
<bean class="com.alibaba.otter.canal.instance.spring.support.PropertyPlaceholderConfigurer" lazy-init="false">
|
||||||
<bean class="com.alibaba.otter.canal.instance.spring.support.PropertyPlaceholderConfigurer" lazy-init="false">
|
|
||||||
<property name="ignoreResourceNotFound" value="true" />
|
<property name="ignoreResourceNotFound" value="true" />
|
||||||
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/><!-- 允许system覆盖 -->
|
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/><!-- 允许system覆盖 -->
|
||||||
<property name="locationNames">
|
<property name="locationNames">
|
||||||
@@ -104,8 +103,9 @@
|
|||||||
<value>classpath:${canal.instance.destination:}/instance.properties</value>
|
<value>classpath:${canal.instance.destination:}/instance.properties</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="instance" class="com.alibaba.otter.canal.instance.spring.CanalInstanceWithSpring">
|
|
||||||
|
<bean id="instance" class="com.alibaba.otter.canal.instance.spring.CanalInstanceWithSpring">
|
||||||
<property name="destination" value="${canal.instance.destination}" />
|
<property name="destination" value="${canal.instance.destination}" />
|
||||||
<property name="eventParser">
|
<property name="eventParser">
|
||||||
<ref local="eventParser" />
|
<ref local="eventParser" />
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
<property name="alarmHandler">
|
<property name="alarmHandler">
|
||||||
<ref local="alarmHandler" />
|
<ref local="alarmHandler" />
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
......
|
......
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user