# db-sync **Repository Path**: SoulBGM/db-sync ## Basic Information - **Project Name**: db-sync - **Description**: 对数据库进行同步,所有的insert,update,delete语句都会发送到${db.sync.sync-ip}参数中定义的本程序中 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-04-24 - **Last Updated**: 2026-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # db-sync #### 介绍 对数据库进行同步,所有的insert,update,delete语句都会发送到${db.sync.sync-ip}参数中定义的本程序中 **db.sync.sync-ip参数格式 ip:port,ip:port,...** **port值为web端口 也就是配置的server.port参数** ### 使用步骤 1. 下载源代码 ```shell git clone https://gitee.com/SoulBGM/db-sync.git ``` 2. 编译并打包到本地仓库 ```shell cd db-sync mvn install ``` 3. 在使用本库项目的pom.xml文件中引入依赖 ```xml git.soulbgm db-sync-spring-boot-starter 1.0 ``` 4. 在application-*.properties中添加需要将同步数据发送的目标IP和端口 ```properties # 端口号为目标程序中配置的server.port参数 db.sync.sync-ip=IP地址:端口号,IP地址:端口号 ```