diff --git a/README.md b/README.md
index 618800cb..41e45496 100644
--- a/README.md
+++ b/README.md
@@ -2,13 +2,14 @@
-
-
-
+
+
+
+
## 如果您觉得有帮助,请点右上角 "Star" 支持一下谢谢
[TOC]
@@ -37,8 +38,6 @@
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
* 非常适合学习和企业中使用
-> 重构于开源项目OCP&cp:https://gitee.com/owenwangwen/open-capacity-platform
-
## 2. 项目总体架构图
diff --git a/pom.xml b/pom.xml
index 78055915..3e3d22a4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,11 +41,15 @@
1.21
2.11.0
5.1.8.RELEASE
- 1.0.2
- Cairo-SR3
- 2.0.0.RELEASE
- 2.0.9.RELEASE
- Finchley.SR4
+ 1.0.2
+ 1.9.4
+ 1.1.6.RELEASE
+ 2.6
+ 4.0.1
+
+ 2.1.0.RELEASE
+ 2.1.8.RELEASE
+ Greenwich.SR3
2.1.1.RELEASE
1.2.0
zlt-job/**/*, zlt-register/**/*, zlt-web/**/*
@@ -69,6 +73,7 @@
commons-beanutils
commons-beanutils
+ ${commons-beanutils.version}
com.alibaba
@@ -313,7 +318,22 @@
com.nepxion
banner
- ${banner.versio}
+ ${banner.version}
+
+
+ org.springframework.social
+ spring-social-security
+ ${spring-social-security.version}
+
+
+ commons-io
+ commons-io
+ ${commons-io.version}
+
+
+ javax.servlet
+ javax.servlet-api
+ ${servlet-api.version}
@@ -323,13 +343,13 @@
pom
import
-
+
org.springframework.cloud
spring-cloud-dependencies
diff --git a/zlt-business/code-generator/src/main/resources/application.yml b/zlt-business/code-generator/src/main/resources/application.yml
index f1d1c1c3..02a65678 100644
--- a/zlt-business/code-generator/src/main/resources/application.yml
+++ b/zlt-business/code-generator/src/main/resources/application.yml
@@ -3,7 +3,7 @@ spring:
url: jdbc:mysql://${zlt.datasource.ip}:3306/user-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
diff --git a/zlt-business/file-center/src/main/resources/application.yml b/zlt-business/file-center/src/main/resources/application.yml
index fe69f3e9..579dc56f 100644
--- a/zlt-business/file-center/src/main/resources/application.yml
+++ b/zlt-business/file-center/src/main/resources/application.yml
@@ -3,7 +3,7 @@ spring:
url: jdbc:mysql://${zlt.datasource.ip}:3306/file_center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
diff --git a/zlt-business/search-center/search-server/src/main/java/com/central/admin/controller/IndexController.java b/zlt-business/search-center/search-server/src/main/java/com/central/admin/controller/IndexController.java
index e2df2af2..c55e0d55 100644
--- a/zlt-business/search-center/search-server/src/main/java/com/central/admin/controller/IndexController.java
+++ b/zlt-business/search-center/search-server/src/main/java/com/central/admin/controller/IndexController.java
@@ -52,8 +52,8 @@ public class IndexController {
/**
* 索引明细
*/
- @GetMapping("/index/{indexName}")
- public Result
+
+ javax.servlet
+ javax.servlet-api
+ provided
+
diff --git a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/annotation/EnableTokenStore.java b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/annotation/EnableTokenStore.java
deleted file mode 100644
index 453a9d23..00000000
--- a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/annotation/EnableTokenStore.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.central.oauth2.common.annotation;
-
-import com.central.oauth2.common.config.TokenStoreConfig;
-import org.springframework.context.annotation.Import;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * 开启token存储认证配置化
- *
- * @author zlt
- * @date 2019/7/7
- */
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.RUNTIME)
-@Import(TokenStoreConfig.class)
-public @interface EnableTokenStore {
-}
diff --git a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/config/TokenStoreConfig.java b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/config/TokenStoreConfig.java
index 5fc87b2b..29fdc618 100644
--- a/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/config/TokenStoreConfig.java
+++ b/zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/config/TokenStoreConfig.java
@@ -10,6 +10,7 @@ import org.springframework.context.annotation.Import;
*
* @author zlt
*/
+@Configuration
public class TokenStoreConfig {
@Configuration
@ConditionalOnProperty(prefix = "zlt.oauth2.token.store", name = "type", havingValue = "db")
diff --git a/zlt-config/src/main/resources/application-dev.properties b/zlt-config/src/main/resources/application-dev.properties
index e184944f..2fafecfb 100644
--- a/zlt-config/src/main/resources/application-dev.properties
+++ b/zlt-config/src/main/resources/application-dev.properties
@@ -11,7 +11,7 @@ spring.redis.timeout=5000
##### elasticsearch配置
zlt.elasticsearch.cluster-name=my-es
-zlt.elasticsearch.cluster-nodes=192.168.28.130:9300
+zlt.elasticsearch.cluster-nodes=119.3.105.180
##### sentinel配置
zlt.sentinel.dashboard=192.168.28.130:6999
diff --git a/zlt-config/src/main/resources/application-prod.properties b/zlt-config/src/main/resources/application-prod.properties
index de948da5..fd9e69e7 100644
--- a/zlt-config/src/main/resources/application-prod.properties
+++ b/zlt-config/src/main/resources/application-prod.properties
@@ -11,7 +11,7 @@ spring.redis.password=1q2w3e4r
##### elasticsearch配置
zlt.elasticsearch.cluster-name=my-es
-zlt.elasticsearch.cluster-nodes=192.168.28.130:9300
+zlt.elasticsearch.cluster-nodes=192.168.28.130
##### sentinel配置
zlt.sentinel.dashboard=192.168.28.130:6999
diff --git a/zlt-config/src/main/resources/application-test.properties b/zlt-config/src/main/resources/application-test.properties
index c0e15c21..34ed9b9c 100644
--- a/zlt-config/src/main/resources/application-test.properties
+++ b/zlt-config/src/main/resources/application-test.properties
@@ -11,7 +11,7 @@ spring.redis.timeout=5000
##### elasticsearch配置
zlt.elasticsearch.cluster-name=my-es
-zlt.elasticsearch.cluster-nodes=192.168.28.130:9300
+zlt.elasticsearch.cluster-nodes=192.168.28.130
##### sentinel配置
zlt.sentinel.dashboard=192.168.28.130:6999
diff --git a/zlt-config/src/main/resources/application.properties b/zlt-config/src/main/resources/application.properties
index 2a33691e..f242512d 100644
--- a/zlt-config/src/main/resources/application.properties
+++ b/zlt-config/src/main/resources/application.properties
@@ -102,4 +102,8 @@ spring.redis.lettuce.pool.max-wait=-1
# 连接池中的最大空闲连接
spring.redis.lettuce.pool.max-idle=8
# 连接池中的最小空闲连接
-spring.redis.lettuce.pool.min-idle=0
\ No newline at end of file
+spring.redis.lettuce.pool.min-idle=0
+
+
+##### 允许bean覆盖
+spring.main.allow-bean-definition-overriding=true
\ No newline at end of file
diff --git a/zlt-demo/seata-demo/account-service/src/main/resources/application.yml b/zlt-demo/seata-demo/account-service/src/main/resources/application.yml
index 6a60ee6c..9e1eaef2 100644
--- a/zlt-demo/seata-demo/account-service/src/main/resources/application.yml
+++ b/zlt-demo/seata-demo/account-service/src/main/resources/application.yml
@@ -3,7 +3,7 @@ spring:
url: jdbc:mysql://192.168.28.130:3306/seata-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: root
password: 1q2w3e4r
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
cloud:
alibaba:
seata:
diff --git a/zlt-demo/seata-demo/order-service/src/main/resources/application.yml b/zlt-demo/seata-demo/order-service/src/main/resources/application.yml
index 9693dc09..857eb806 100644
--- a/zlt-demo/seata-demo/order-service/src/main/resources/application.yml
+++ b/zlt-demo/seata-demo/order-service/src/main/resources/application.yml
@@ -3,7 +3,7 @@ spring:
url: jdbc:mysql://192.168.28.130:3306/seata-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: root
password: 1q2w3e4r
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
cloud:
alibaba:
seata:
diff --git a/zlt-demo/seata-demo/storage-service/src/main/resources/application.yml b/zlt-demo/seata-demo/storage-service/src/main/resources/application.yml
index 06d16c53..ec287685 100644
--- a/zlt-demo/seata-demo/storage-service/src/main/resources/application.yml
+++ b/zlt-demo/seata-demo/storage-service/src/main/resources/application.yml
@@ -3,7 +3,7 @@ spring:
url: jdbc:mysql://192.168.28.130:3306/seata-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: root
password: 1q2w3e4r
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
cloud:
alibaba:
seata:
diff --git a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-master-slave.yml b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-master-slave.yml
index 3e702206..f02a4025 100644
--- a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-master-slave.yml
+++ b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-master-slave.yml
@@ -4,19 +4,19 @@ sharding:
names: ds-master,ds-slave-0,ds-slave-1
ds-master:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_master?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
ds-slave-0:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_slave_0?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
ds-slave-1:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_slave_1?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
diff --git a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases.yml b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases.yml
index dd8f222a..bfd6f39d 100644
--- a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases.yml
+++ b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases.yml
@@ -4,13 +4,13 @@ sharding:
names: ds-0,ds-1
ds-0:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_0?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
ds-1:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_1?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
diff --git a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases2.yml b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases2.yml
index 7cdddd63..86dc2488 100644
--- a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases2.yml
+++ b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases2.yml
@@ -4,13 +4,13 @@ sharding:
names: ds-alibaba,ds-baidu
ds-alibaba:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_alibaba?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
ds-baidu:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_baidu?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
diff --git a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases3.yml b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases3.yml
index 4f4fc44c..1f8aabf7 100644
--- a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases3.yml
+++ b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-databases3.yml
@@ -4,19 +4,19 @@ sharding:
names: ds,ds-0,ds-1
ds:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
ds-0:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_0?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
ds-1:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds_1?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
diff --git a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-tables.yml b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-tables.yml
index f609a585..9db0eb20 100644
--- a/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-tables.yml
+++ b/zlt-demo/sharding-jdbc-demo/src/main/resources/application-sharding-tables.yml
@@ -4,7 +4,7 @@ sharding:
names: ds
ds:
type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/demo_ds?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBClient.java b/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBClient.java
index 6600eb45..bee92637 100644
--- a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBClient.java
+++ b/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBClient.java
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
*
* @author ujued
*/
-@FeignClient(value = "txlcn-demo-spring-service-b", fallback = ServiceBFallback.class)
+@FeignClient(value = "txlcn-demo-spring-service-b")
public interface ServiceBClient {
@GetMapping("/rpc")
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBFallback.java b/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBFallback.java
deleted file mode 100644
index e12b9bc2..00000000
--- a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceBFallback.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.txlcn.demo.common.spring;
-
-import org.springframework.stereotype.Component;
-
-/**
- * Description:
- * Date: 19-2-19 下午1:53
- *
- * @author ujued
- */
-@Component
-public class ServiceBFallback implements ServiceBClient {
- @Override
- public String rpc(String name) {
- return "fallback";
- }
-}
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCClient.java b/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCClient.java
index 9d838af3..7c9cb023 100644
--- a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCClient.java
+++ b/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCClient.java
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
*
* @author ujued
*/
-@FeignClient(value = "txlcn-demo-spring-service-c", fallback = ServiceCFallback.class)
+@FeignClient(value = "txlcn-demo-spring-service-c")
public interface ServiceCClient {
@GetMapping("/rpc")
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCFallback.java b/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCFallback.java
deleted file mode 100644
index c67b4cdc..00000000
--- a/zlt-demo/txlcn-demo/txlcn-demo-common/src/main/java/org/txlcn/demo/common/spring/ServiceCFallback.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.txlcn.demo.common.spring;
-
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Component;
-
-/**
- * Description:
- * Date: 19-2-19 下午1:53
- *
- * @author ujued
- */
-@Component
-@Slf4j
-public class ServiceCFallback implements ServiceCClient {
- @Override
- public String rpc(String name) {
- return "fallback";
- }
-}
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-spring-service-a/src/main/resources/application.yml b/zlt-demo/txlcn-demo/txlcn-demo-spring-service-a/src/main/resources/application.yml
index 3d8e197a..cd402049 100644
--- a/zlt-demo/txlcn-demo/txlcn-demo-spring-service-a/src/main/resources/application.yml
+++ b/zlt-demo/txlcn-demo/txlcn-demo-spring-service-a/src/main/resources/application.yml
@@ -1,6 +1,6 @@
spring:
datasource:
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/txlcn-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -13,7 +13,7 @@ tx-lcn:
enabled: true
logger:
enabled: true
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
\ No newline at end of file
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-spring-service-b/src/main/resources/application.yml b/zlt-demo/txlcn-demo/txlcn-demo-spring-service-b/src/main/resources/application.yml
index 3d8e197a..cd402049 100644
--- a/zlt-demo/txlcn-demo/txlcn-demo-spring-service-b/src/main/resources/application.yml
+++ b/zlt-demo/txlcn-demo/txlcn-demo-spring-service-b/src/main/resources/application.yml
@@ -1,6 +1,6 @@
spring:
datasource:
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/txlcn-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -13,7 +13,7 @@ tx-lcn:
enabled: true
logger:
enabled: true
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
\ No newline at end of file
diff --git a/zlt-demo/txlcn-demo/txlcn-demo-spring-service-c/src/main/resources/application.yml b/zlt-demo/txlcn-demo/txlcn-demo-spring-service-c/src/main/resources/application.yml
index 3d8e197a..cd402049 100644
--- a/zlt-demo/txlcn-demo/txlcn-demo-spring-service-c/src/main/resources/application.yml
+++ b/zlt-demo/txlcn-demo/txlcn-demo-spring-service-c/src/main/resources/application.yml
@@ -1,6 +1,6 @@
spring:
datasource:
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/txlcn-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -13,7 +13,7 @@ tx-lcn:
enabled: true
logger:
enabled: true
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
\ No newline at end of file
diff --git a/zlt-gateway/zuul-gateway/src/main/java/com/central/gateway/config/ResourceServerConfiguration.java b/zlt-gateway/zuul-gateway/src/main/java/com/central/gateway/config/ResourceServerConfiguration.java
index 69634205..6284fe3a 100644
--- a/zlt-gateway/zuul-gateway/src/main/java/com/central/gateway/config/ResourceServerConfiguration.java
+++ b/zlt-gateway/zuul-gateway/src/main/java/com/central/gateway/config/ResourceServerConfiguration.java
@@ -1,7 +1,6 @@
package com.central.gateway.config;
import com.central.common.config.DefaultPasswordConfig;
-import com.central.oauth2.common.annotation.EnableTokenStore;
import com.central.oauth2.common.config.DefaultResourceServerConf;
import com.central.oauth2.common.properties.SecurityProperties;
import org.springframework.beans.factory.annotation.Autowired;
@@ -19,7 +18,6 @@ import org.springframework.security.oauth2.config.annotation.web.configuration.E
@Configuration
@EnableResourceServer
@EnableConfigurationProperties(SecurityProperties.class)
-@EnableTokenStore
@Import({DefaultPasswordConfig.class})
public class ResourceServerConfiguration extends DefaultResourceServerConf {
@Autowired
diff --git a/zlt-transaction/txlcn-tm/src/main/resources/application.properties b/zlt-transaction/txlcn-tm/src/main/resources/application.properties
index 1f0656fc..888cb75b 100644
--- a/zlt-transaction/txlcn-tm/src/main/resources/application.properties
+++ b/zlt-transaction/txlcn-tm/src/main/resources/application.properties
@@ -3,7 +3,7 @@
#################
spring.profiles.active=dev
-spring.datasource.driver-class-name=com.mysql.jdbc.Driver
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://${zlt.datasource.ip}:3306/tx-manager?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
spring.datasource.username=${zlt.datasource.username}
spring.datasource.password=${zlt.datasource.password}
@@ -11,7 +11,7 @@ spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=update
tx-lcn.logger.enabled=true
-tx-lcn.logger.driver-class-name=com.mysql.jdbc.Driver
+tx-lcn.logger.driver-class-name=com.mysql.cj.jdbc.Driver
tx-lcn.logger.jdbc-url=jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
tx-lcn.logger.username=${zlt.datasource.username}
tx-lcn.logger.password=${zlt.datasource.password}
diff --git a/zlt-uaa/src/main/java/com/central/oauth/config/AuthorizationServerConfig.java b/zlt-uaa/src/main/java/com/central/oauth/config/AuthorizationServerConfig.java
index 105c9cfd..55f3b87c 100644
--- a/zlt-uaa/src/main/java/com/central/oauth/config/AuthorizationServerConfig.java
+++ b/zlt-uaa/src/main/java/com/central/oauth/config/AuthorizationServerConfig.java
@@ -1,7 +1,6 @@
package com.central.oauth.config;
import com.central.oauth.service.impl.RedisClientDetailsService;
-import com.central.oauth2.common.annotation.EnableTokenStore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Configuration;
@@ -30,7 +29,6 @@ import java.util.Arrays;
*/
@Configuration
@EnableAuthorizationServer
-@EnableTokenStore
@AutoConfigureAfter(AuthorizationServerEndpointsConfigurer.class)
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
/**
diff --git a/zlt-uaa/src/main/java/com/central/oauth/handler/OauthLogoutHandler.java b/zlt-uaa/src/main/java/com/central/oauth/handler/OauthLogoutHandler.java
index 575b6a29..41083f12 100644
--- a/zlt-uaa/src/main/java/com/central/oauth/handler/OauthLogoutHandler.java
+++ b/zlt-uaa/src/main/java/com/central/oauth/handler/OauthLogoutHandler.java
@@ -3,7 +3,6 @@ package com.central.oauth.handler;
import cn.hutool.core.util.StrUtil;
import com.central.oauth2.common.util.AuthUtils;
import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
diff --git a/zlt-uaa/src/main/resources/application.yml b/zlt-uaa/src/main/resources/application.yml
index b8399860..6747d85b 100644
--- a/zlt-uaa/src/main/resources/application.yml
+++ b/zlt-uaa/src/main/resources/application.yml
@@ -3,7 +3,7 @@ spring:
url: jdbc:mysql://${zlt.datasource.ip}:3306/oauth-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
- driver-class-name: com.mysql.jdbc.Driver
+ driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
diff --git a/zlt-web/back-web/src/main/resources/static/pages/search/index_manager.html b/zlt-web/back-web/src/main/resources/static/pages/search/index_manager.html
index d28b65f6..e69759cd 100644
--- a/zlt-web/back-web/src/main/resources/static/pages/search/index_manager.html
+++ b/zlt-web/back-web/src/main/resources/static/pages/search/index_manager.html
@@ -99,7 +99,7 @@
layer.confirm('确定要删除吗?', function (i) {
layer.close(i);
layer.load(2);
- admin.req('api-search/admin/index/' + obj.data.indexName, {}, function (data) {
+ admin.req('api-search/admin/index?indexName='+obj.data.indexName, {}, function (data) {
layer.closeAll('loading');
if (data.resp_code == 0) {
layer.msg(data.resp_msg, {icon: 1, time: 500});
diff --git a/zlt-web/back-web/src/main/resources/static/pages/search/index_manager_view.html b/zlt-web/back-web/src/main/resources/static/pages/search/index_manager_view.html
index 67299656..aff0216c 100644
--- a/zlt-web/back-web/src/main/resources/static/pages/search/index_manager_view.html
+++ b/zlt-web/back-web/src/main/resources/static/pages/search/index_manager_view.html
@@ -21,7 +21,7 @@
// 回显user数据
let indexName = admin.getTempData('indexName');
if (indexName) {
- admin.req('api-search/admin/index/'+indexName, {}, function (data) {
+ admin.req('api-search/admin/index', {'indexName':indexName}, function (data) {
layer.closeAll('loading');
if (0 == data.resp_code) {
$('#data').html(syntaxHighlight(data.datas));