From e09aad2415841bb626db75406b7f9a8d7b6b79d7 Mon Sep 17 00:00:00 2001
From: xiongxiaoyang <1179705413@qq.com>
Date: Sat, 1 Jun 2024 21:12:55 +0800
Subject: [PATCH] =?UTF-8?q?build:=20=E5=8D=87=E7=BA=A7spring-boot3?=
=?UTF-8?q?=E8=87=B33.3.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 19 ++++++-------------
.../xxyopen/novel/core/config/EsConfig.java | 9 ---------
2 files changed, 6 insertions(+), 22 deletions(-)
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`