feat(juhe): 增加Redis缓存与每日调用限流

重构聚合数据客户端为服务层,引入Redis缓存及每日调用上限50次,超限后降级使用缓存;调整默认激活prod并移除MySQL profile;处理静态资源404异常。

添加用户友好界面,增加京备案号
This commit is contained in:
promise_cyf
2026-10-10 14:24:49 +08:00
parent 9c04f81f2d
commit 7dcb094f4e
18 changed files with 1273 additions and 61 deletions
+12
View File
@@ -30,6 +30,18 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Redis(缓存 + 每日调用限流) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- Lettuce 连接池实现,使 spring.data.redis.lettuce.pool 配置生效 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
<!-- MyBatis-Plus -->
<dependency>
<groupId>com.baomidou</groupId>