- 新增 Canal 客户端配置与连接管理 - 实现 Canal 数据订阅与消费调度任务 - 添加外部词典热更新接口与服务实现- 配置 Elasticsearch词典热更新支持 - 引入 Canal 相关依赖并统一版本管理- 启用 Spring 定时任务支持以驱动 Canal 消费- 增加项目词典以优化拼写检查准确性
92 lines
2.9 KiB
XML
92 lines
2.9 KiB
XML
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<!-- 指定父项目 -->
|
|
<parent>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>han-note</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<!-- 指定打包方式 -->
|
|
<packaging>jar</packaging>
|
|
<artifactId>han-note-search</artifactId>
|
|
<name>${project.artifactId}</name>
|
|
<description>搜索服务</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-common</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- 业务接口日志组件 -->
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-spring-boot-starter-biz-operationlog</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Jackson 组件 -->
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-spring-boot-starter-jackson</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 服务注册发现 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Elasticsearch 分布式搜索引擎 -->
|
|
<dependency>
|
|
<groupId>co.elastic.clients</groupId>
|
|
<artifactId>elasticsearch-java</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-client</artifactId>
|
|
</dependency>
|
|
<!-- Canal -->
|
|
<dependency>
|
|
<groupId>com.alibaba.otter</groupId>
|
|
<artifactId>canal.client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.otter</groupId>
|
|
<artifactId>canal.common</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.otter</groupId>
|
|
<artifactId>canal.protocol</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|