From 6c969a63dd17d30efc1ef13adc46893798df2601 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: Wed, 29 Mar 2023 09:44:45 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4druid=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E5=BA=93=E8=BF=9E=E6=8E=A5=E6=B1=A0=EF=BC=8C=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?spring=E6=94=AF=E6=8C=81=E7=9A=84hikari?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 8 +--
.../genersoft/iot/vmp/VManageBootstrap.java | 2 -
.../iot/vmp/conf/GlobalResponseAdvice.java | 5 +-
.../vmp/conf/druid/DruidConfiguration.java | 64 -------------------
.../vmp/conf/druid/EnableDruidSupport.java | 24 -------
src/main/resources/all-application.yml | 39 ++---------
6 files changed, 11 insertions(+), 131 deletions(-)
delete mode 100644 src/main/java/com/genersoft/iot/vmp/conf/druid/DruidConfiguration.java
delete mode 100644 src/main/java/com/genersoft/iot/vmp/conf/druid/EnableDruidSupport.java
diff --git a/pom.xml b/pom.xml
index 7cf44e76..5628ab37 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,11 +123,9 @@
spring-boot-starter-security
-
- com.alibaba
- druid-spring-boot-starter
- 1.2.11
+ org.springframework.boot
+ spring-boot-starter-jdbc
@@ -294,7 +292,7 @@
org.springframework.boot
spring-boot-maven-plugin
- 2.3.5.RELEASE
+ 2.7.2
true
diff --git a/src/main/java/com/genersoft/iot/vmp/VManageBootstrap.java b/src/main/java/com/genersoft/iot/vmp/VManageBootstrap.java
index eab22079..886d6fa1 100644
--- a/src/main/java/com/genersoft/iot/vmp/VManageBootstrap.java
+++ b/src/main/java/com/genersoft/iot/vmp/VManageBootstrap.java
@@ -1,6 +1,5 @@
package com.genersoft.iot.vmp;
-import com.genersoft.iot.vmp.conf.druid.EnableDruidSupport;
import com.genersoft.iot.vmp.utils.GitUtil;
import com.genersoft.iot.vmp.utils.SpringBeanFactory;
import org.slf4j.Logger;
@@ -25,7 +24,6 @@ import java.util.Collections;
@ServletComponentScan("com.genersoft.iot.vmp.conf")
@SpringBootApplication
@EnableScheduling
-@EnableDruidSupport
public class VManageBootstrap extends SpringBootServletInitializer {
private final static Logger logger = LoggerFactory.getLogger(VManageBootstrap.class);
diff --git a/src/main/java/com/genersoft/iot/vmp/conf/GlobalResponseAdvice.java b/src/main/java/com/genersoft/iot/vmp/conf/GlobalResponseAdvice.java
index 05f74816..c8b84fe9 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/GlobalResponseAdvice.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/GlobalResponseAdvice.java
@@ -10,14 +10,11 @@ import org.springframework.context.annotation.Bean;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
-import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
-import java.util.List;
-
/**
* 全局统一返回结果
* @author lin
@@ -63,7 +60,7 @@ public class GlobalResponseAdvice implements ResponseBodyAdvice