|
@@ -1,5 +1,6 @@
|
|
|
package com.tzld.piaoquan.recommend.server.service;
|
|
|
|
|
|
+import com.tzld.piaoquan.recommend.server.repository.WxVideoStatusRepository;
|
|
|
import com.tzld.piaoquan.recommend.server.service.score.ScorerUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
@@ -24,7 +25,8 @@ public class WarmUpService {
|
|
|
@Autowired
|
|
|
@Qualifier("longVideoRedisTemplate")
|
|
|
private RedisTemplate<String, String> longVideoRedisTemplate;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private WxVideoStatusRepository wxVideoStatusRepository;
|
|
|
|
|
|
@PostConstruct
|
|
|
public void warmup() {
|
|
@@ -32,5 +34,6 @@ public class WarmUpService {
|
|
|
featureRedisTemplate.opsForValue().get("");
|
|
|
longVideoRedisTemplate.opsForValue().get("");
|
|
|
ScorerUtils.warmUp();
|
|
|
+ wxVideoStatusRepository.count();
|
|
|
}
|
|
|
}
|