解决获取假期ssl证书信任错误
This commit is contained in:
parent
ffd92607e2
commit
15a50cc52f
@ -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);
|
||||
|
@ -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! # 密码,建议生产环境开启
|
||||
|
Loading…
Reference in New Issue
Block a user