chore(config): 添加开发环境配置及项目依赖管理

- 新增application-dev.yaml,配置PostgreSQL数据库连接和MyBatis Plus参数
- 添加Spring AI配置及MinIO对象存储服务参数
- 配置日志输出级别,便于开发环境调试
- 新建pom.xml,声明项目依赖及版本管理
- 集成Spring Boot、Spring AI、MyBatis Plus及MinIO客户端依赖
- 增加多种文档解析相关依赖,支持PDF、Word、Excel、Markdown和通用文档解析
- 设定Java 17编译版本和Spring Boot父项目版本管理
This commit is contained in:
2026-03-26 19:14:27 +08:00
parent 852cbd60a0
commit 12c5061d28
2 changed files with 16 additions and 8 deletions

22
pom.xml
View File

@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.12</version>
<version>3.2.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>cn.yinlihupo</groupId>
@@ -19,7 +19,7 @@
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<spring-ai.version>1.0.0-M6</spring-ai.version>
<spring-ai.version>1.1.0</spring-ai.version>
</properties>
<dependencies>
@@ -38,33 +38,31 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<!--hutool all-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.11</version>
<version>5.8.23</version>
</dependency>
<!-- PostgreSQL 数据库驱动 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Spring AI -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
<artifactId>spring-ai-starter-model-openai</artifactId>
</dependency>
<!-- Spring AI PostgreSQL Vector Store -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-pgvector-store-spring-boot-starter</artifactId>
<artifactId>spring-ai-starter-vector-store-pgvector</artifactId>
</dependency>
<!-- MyBatis Plus -->
@@ -134,6 +132,16 @@
</dependency>
</dependencies>
<!-- Maven Central is included by default in Maven builds.
You usually dont need to configure it explicitly,
but it's shown here for clarity. -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>

View File

@@ -37,7 +37,7 @@ spring:
base-url: https://sg1.proxy.yinlihupo.cc/proxy/https://openrouter.ai/api/v1
chat:
options:
model: Qwen3
model: google/gemini-2.5-flash
# MinIO 对象存储配置
minio: