diff --git a/pom.xml b/pom.xml index 99b1b9c..e474fe5 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.0 + 3.3.0 io.github.xxyopen @@ -16,16 +16,15 @@ Spring Boot 3 + Vue 3 构建的前后端分离小说系统 17 - 3.5.3 + 3.5.6 3.5.1 0.11.5 - 8.2.0 2.3.1 1.8.4 5.2.1 3.19.1 3.0.0-M1 - 2.0.0 + 2.5.0 @@ -50,7 +49,7 @@ com.baomidou - mybatis-plus-boot-starter + mybatis-plus-spring-boot3-starter ${mybatis-plus.version} @@ -107,15 +106,9 @@ hibernate-validator - - co.elastic.clients - elasticsearch-java - ${elasticsearch.version} - - - com.fasterxml.jackson.core - jackson-databind + org.springframework.boot + spring-boot-starter-data-elasticsearch diff --git a/src/main/java/io/github/xxyopen/novel/core/config/EsConfig.java b/src/main/java/io/github/xxyopen/novel/core/config/EsConfig.java index a35fbb2..38620b2 100644 --- a/src/main/java/io/github/xxyopen/novel/core/config/EsConfig.java +++ b/src/main/java/io/github/xxyopen/novel/core/config/EsConfig.java @@ -1,6 +1,5 @@ package io.github.xxyopen.novel.core.config; -import co.elastic.clients.json.jackson.JacksonJsonpMapper; import lombok.extern.slf4j.Slf4j; import org.apache.http.impl.nio.client.HttpAsyncClientBuilder; import org.elasticsearch.client.RestClient; @@ -29,14 +28,6 @@ import java.security.cert.X509Certificate; @Slf4j public class EsConfig { - /** - * 解决 ElasticsearchClientConfigurations 修改默认 ObjectMapper 配置的问题 - */ - @Bean - JacksonJsonpMapper jacksonJsonpMapper() { - return new JacksonJsonpMapper(); - } - /** * fix `sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: * unable to find valid certification path to requested target`