yumeng 1 day ago
parent
commit
87db400599

+ 9 - 4
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/impl/SafeTiFlashInterceptor.java

@@ -1,3 +1,4 @@
+/*
 package org.jeecg.ctop.material.service.impl;
 
 
@@ -12,9 +13,11 @@ import java.sql.Connection;
 import java.sql.Statement;
 import java.util.Properties;
 
+*/
 /**
  * 使用MetaObject安全获取字段的TiFlash拦截器
- */
+ *//*
+
 @Intercepts({
         @Signature(type = Executor.class, method = "query",
                 args = {MappedStatement.class, Object.class,
@@ -62,9 +65,11 @@ public class SafeTiFlashInterceptor implements Interceptor {
         return invocation.proceed();
     }
 
-    /**
+    */
+/**
      * 获取真实的Connection对象(处理代理)
-     */
+     *//*
+
     private Connection getRealConnection(Connection connection) {
         try {
             if (Proxy.isProxyClass(connection.getClass())) {
@@ -91,4 +96,4 @@ public class SafeTiFlashInterceptor implements Interceptor {
     @Override
     public void setProperties(Properties properties) {
     }
-}
+}*/

+ 1 - 1
jeecg-boot-material-view/src/main/resources/application-prod.yml

@@ -108,7 +108,7 @@ spring:
 
       datasource:
         master:
-          url: jdbc:mysql://111.204.208.234:3394/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true&serverTimezone=GMT%2B8
+          url: jdbc:mysql://111.204.208.234:3394/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true&serverTimezone=GMT%2B8&sessionVariables=tidb_isolation_read_engines='tiflash,tidb
           username: hcst
           password: hcst@2024
           driver-class-name: com.mysql.jdbc.Driver