From 61928d9f8ff1b1772efdef093255b660b97758af Mon Sep 17 00:00:00 2001 From: xiang Date: Sun, 9 Nov 2025 21:39:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20v-1.0.0spring=20ai=20alibaba=E6=90=AD?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 182 +++++++++++++----- .../src/main/resources/application.yml | 16 +- 2 files changed, 152 insertions(+), 46 deletions(-) diff --git a/pom.xml b/pom.xml index 27f9b3f..c13deef 100644 --- a/pom.xml +++ b/pom.xml @@ -2,12 +2,6 @@ - - org.springframework.boot - spring-boot-starter-parent - 3.5.5 - - pom xservice-service @@ -20,11 +14,28 @@ 1.0-SNAPSHOT - 17 - 17 - UTF-8 - 1.0.0.3 - 1.0.0 + 3.3.5 + 2023.0.3 + 1.0.0-M6 + 2023.0.1.0 + 17 + 17 + 2.2.2 + 5.1.4 + 8.0.33 + 2.0.51 + ${java.version} + ${java.version} + UTF-8 + 16.0.1 + 2.3.1 + 3.5.14 + 8.0.33 + 1.18.30 + 3.23.6 + 2.2.3 + 0.4.0 + 1.0.0.2 @@ -54,6 +65,42 @@ + + + org.springframework.boot + spring-boot-dependencies + ${spring.boot.version} + pom + import + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring.cloud.version} + pom + import + + + + + com.alibaba.cloud + spring-cloud-alibaba-dependencies + ${spring.cloud.alibaba.version} + pom + import + + + + + + + + + + + com.alibaba.cloud.ai spring-ai-alibaba-bom @@ -61,16 +108,6 @@ import ${springai.alibaba.version} - - org.springframework.ai - spring-ai-bom - ${springai.version} - - - org.springframework.boot - spring-boot-dependencies - 3.5.5 - @@ -94,29 +131,29 @@ mysql mysql-connector-java - 8.0.33 + ${mysql.version} - - org.springframework.ai - spring-ai-pdf-document-reader - ${springai.version} - - - org.springframework.ai - spring-ai-pgvector-store - ${springai.version} - - - org.springframework.ai - spring-ai-autoconfigure-vector-store-pgvector - ${springai.version} - - - org.springframework.ai - spring-ai-tika-document-reader - ${springai.version} - + + + + + + + + + + + + + + + + + + + + @@ -130,7 +167,7 @@ org.projectlombok lombok - 1.18.32 + ${lombok.version} org.springframework.boot @@ -138,4 +175,63 @@ + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${java.version} + ${java.version} + ${encoding} + true + + + + org.projectlombok + lombok + 1.18.30 + + + + org.mapstruct + mapstruct-processor + 1.5.5.Final + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${java.version} + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + + release + http://mirror.xiangtech.xyz/repository/maven-releases/ + + + snapshot + http://mirror.xiangtech.xyz/repository/maven-snapshots/ + + + \ No newline at end of file diff --git a/xservice-server/src/main/resources/application.yml b/xservice-server/src/main/resources/application.yml index fd5223a..94dda76 100644 --- a/xservice-server/src/main/resources/application.yml +++ b/xservice-server/src/main/resources/application.yml @@ -1,16 +1,26 @@ spring: - ai: - dashscope: - api-key: sk-07353fd191074c9c930b134230ba88ea + application: name: xservice-ai-center + profiles: active: local + datasource: url: jdbc:mysql://rm-bp15t34gqx62jm069ro.mysql.rds.aliyuncs.com:3306/xservice-ai-center?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true username: root password: xb#UWqnhH24&XpX driver-class-name: com.mysql.cj.jdbc.Driver + ai: + dashscope: + api-key: sk-07353fd191074c9c930b134230ba88ea + chat: + options: + model: qwen-plus + http: + connect-timeout: 30s + read-timeout: 60s + server: port: 38020 # 返回结果UTF-8格式编码