解决获取假期ssl证书信任错误

This commit is contained in:
aikai 2024-12-19 14:43:50 +08:00
parent ffd92607e2
commit 15a50cc52f
2 changed files with 3 additions and 3 deletions

View File

@ -282,7 +282,7 @@ public class AttendanceServiceImpl implements AttendanceService {
Boolean flag = stringRedisTemplate.hasKey(key);
// 缓存不存在
if (Boolean.FALSE.equals(flag)) {
String url = "https://timor.tech/api/holiday/year/" + year;
String url = "http://timor.tech/api/holiday/year/" + year;
String json = HttpUtil.get(url, 3000);
Map<String, String> map = new HashMap<>();
JSONObject jsonObject = JSONUtil.parseObj(json);
@ -1190,7 +1190,7 @@ public class AttendanceServiceImpl implements AttendanceService {
Boolean flag = stringRedisTemplate.hasKey(key);
// 缓存不存在
if (Boolean.FALSE.equals(flag)) {
String url = "https://timor.tech/api/holiday/year/" + year;
String url = "http://timor.tech/api/holiday/year/" + year;
String json = HttpUtil.get(url, 3000);
Map<String, String> map = new HashMap<>();
JSONObject jsonObject = JSONUtil.parseObj(json);

View File

@ -54,7 +54,7 @@ spring:
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis:
host: 47.97.8.94 # 地址
host: 47.96.130.92 # 地址
port: 6379 # 端口
database: 0 # 数据库索引
password: yhtkj@2024! # 密码,建议生产环境开启