| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>3.2.5</version>
- <relativePath/>
- </parent>
- <groupId>com.zhongsou</groupId>
- <artifactId>db-ai</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>db-ai</name>
- <description>对接火山豆包助手API的新项目</description>
- <properties>
- <java.version>17</java.version>
- <!-- 显式指定 Jackson 版本,修复 DoS 漏洞 -->
- <jackson.version>2.15.7</jackson.version>
- <!-- MyBatis-Plus 版本(适配 Spring Boot 3.2.x) -->
- <mybatis-plus.version>3.5.5</mybatis-plus.version>
- </properties>
- <dependencies>
- <!-- 核心:Spring Web(自带RestTemplate、Jackson) -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <!-- 仅需这一行,包含Redis核心+自动配置,无需额外依赖 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- </dependency>
- <!-- 数据库:JDBC + MySQL(按需保留) -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-jdbc</artifactId>
- </dependency>
- <dependency>
- <groupId>com.mysql</groupId>
- <artifactId>mysql-connector-j</artifactId>
- <scope>runtime</scope>
- </dependency>
- <!-- MyBatis-Plus 核心依赖(适配 Spring Boot 3.x) -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>${mybatis-plus.version}</version>
- </dependency>
- <!-- Lombok(简化代码) -->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <!-- 测试依赖 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- FastJson2 核心依赖 -->
- <dependency>
- <groupId>com.alibaba.fastjson2</groupId>
- <artifactId>fastjson2</artifactId>
- <version>2.0.45</version>
- </dependency>
- <!-- FastJson2 与 Spring 6 整合 -->
- <dependency>
- <groupId>com.alibaba.fastjson2</groupId>
- <artifactId>fastjson2-extension-spring6</artifactId>
- <version>2.0.45</version>
- </dependency>
- <!-- SpringDoc OpenAPI(Swagger UI),测试接口超方便 -->
- <dependency>
- <groupId>org.springdoc</groupId>
- <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
- <version>2.3.0</version>
- </dependency>
- <dependency>
- <groupId>org.jetbrains</groupId>
- <artifactId>annotations</artifactId>
- <version>24.0.0</version>
- <scope>compile</scope>
- </dependency>
- <!-- Spring WebFlux(包含 WebClient) -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-webflux</artifactId>
- <!-- 锁定稳定版本,和你的 Spring Boot 版本保持一致 -->
- <version>3.2.4</version>
- </dependency>
- <!-- 可选:如果需要更灵活的响应式处理 -->
- <dependency>
- <groupId>io.projectreactor</groupId>
- <artifactId>reactor-core</artifactId>
- <version>3.6.4</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- </exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|