Quellcode durchsuchen

盒子集成人大金仓数据库

DESKTOP-3Q5PM1M\896986 vor 12 Stunden
Ursprung
Commit
2ba8421262

+ 7 - 0
im-platform/pom.xml

@@ -64,6 +64,11 @@
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-validation</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.kingbase8</groupId>
+            <artifactId>kingbase8</artifactId>
+            <version>8.2.0</version>
+        </dependency>
         <!--minio-->
         <dependency>
             <groupId>io.minio</groupId>
@@ -91,6 +96,8 @@
             <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
             <version>${knife4j.version}</version>
         </dependency>
+        <!-- Source: https://mvnrepository.com/artifact/cn.com.kingbase/kingbase8 -->
+
     </dependencies>
     <build>
         <finalName>${project.artifactId}</finalName>

+ 16 - 6
im-platform/src/main/resources/application-dev.yml

@@ -1,17 +1,27 @@
+#spring:
+#  datasource:
+#    driver-class-name: com.mysql.cj.jdbc.Driver
+#    url: jdbc:mysql://39.105.151.80:3306/im_platform?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
+#    username: root
+#    password: root.123@
+#  data:
+#    redis:
+#      host: 127.0.0.1
+#      port: 6379
 spring:
   datasource:
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://39.105.151.80:3306/im_platform?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
-    username: root
-    password: root.123@
+    driver-class-name: com.kingbase8.Driver
+    url: jdbc:kingbase8://39.106.85.55:11025/OAOPT?currentSchema=OAOPT
+    username: SYSTEM
+    password: 111111
   data:
     redis:
       host: 127.0.0.1
       port: 6379
 
 minio:
-  endpoint: http://127.0.0.1:9005 #内网地址
-  domain: http://127.0.0.1:9000  #外网访问地址
+  endpoint: http://192.168.1.111:9005 #内网地址
+  domain: http://192.168.1.111:9005  #外网访问地址
   accessKey: minioadmin
   secretKey: minioadmin
   bucketName: box-im

+ 2 - 2
im-platform/src/main/resources/application-prod.yml

@@ -11,8 +11,8 @@ spring:
       password: PmEpfRjpBnTN6CgW
 
 minio:
-  endpoint: http://127.0.0.1:9001 #内网地址
-  domain: https://www.boxim.online/file  #外网访问地址
+  endpoint: http://127.0.0.1:9005 #内网地址
+  domain: https://127.0.0.1:9005  #外网访问地址
   accessKey: admin
   secretKey: 3fBSt6AkgFuD77D6
   bucketName: box-im

+ 1 - 1
im-web/.env.development

@@ -5,4 +5,4 @@ VUE_APP_NAME = "盒子IM"
 # 接口请求地址
 VUE_APP_BASE_API = '/api'
 # ws地址
-VUE_APP_WS_URL = 'ws://localhost:8878/im'
+VUE_APP_WS_URL = 'ws://192.168.1.111:8878/im'

+ 1 - 1
im-web/vue.config.js

@@ -5,7 +5,7 @@ module.exports = {
 	devServer: {
 		proxy: {
 			'/api': {
-				target: 'http://127.0.0.1:8888',
+				target: 'http://192.168.1.111:8888',
 				changeOrigin: true,
 				ws: false,
 				pathRewrite: {