1. 环境准备 Spring Boot 版本:2.x 或 3.x。 JDK 版本:8 或更高。 依赖:需要 spring-boot-starter-web 和 httpclient。 2. 添加依赖 在 pom.xml 中添加以