xushili 1 år sedan
förälder
incheckning
e0ba97f38c

+ 2 - 0
build.gradle.kts

@@ -15,6 +15,8 @@ configurations {
 }
 
 repositories {
+    mavenLocal()
+    maven (url="https://maven.aliyun.com/repository/public")
     mavenCentral()
 }
 

+ 2 - 0
src/main/java/com/gyee/table/mapper/ObjectAllMapper.java

@@ -1,5 +1,6 @@
 package com.gyee.table.mapper;
 
+import com.baomidou.dynamic.datasource.annotation.DS;
 import org.apache.ibatis.annotations.Mapper;
 
 import java.util.LinkedHashMap;
@@ -14,6 +15,7 @@ import java.util.List;
  * @since 2023-01-12
  */
 @Mapper
+@DS("databasesecond")
 public interface ObjectAllMapper {
     List<LinkedHashMap<String, Object>> selectAll(String sql);
 }

+ 4 - 3
src/main/resources/application.yml

@@ -1,5 +1,5 @@
 server:
-  port: 8091
+  port: 8076
 spring:
   mvc:
     pathmatch:
@@ -28,7 +28,7 @@ spring:
           password: gyeepd@123
         databasesecond:
           driver-class-name: org.postgresql.Driver
-          url: jdbc:postgresql://10.81.3.151:5432/configuration_software
+          url: jdbc:postgresql://10.81.3.151:5432/IMS_NEM_JN
           username: postgres
           password: postgres
 
@@ -48,4 +48,5 @@ logging:
   logback:
     rollingpolicy:
       #max-file-size: 9MB
-      file-name-pattern: server.%d{yyyy-MM-dd}.%i.gz
+      file-name-pattern: server.%d{yyyy-MM-dd}.%i.gz
+      total-size-cap: 30GB