Commit 30ca2e5e authored by 钱坤's avatar 钱坤

启用srping的schedule功能

parent 96f51b72
...@@ -4,6 +4,8 @@ import com.tanpu.common.utils.RedisUtils; ...@@ -4,6 +4,8 @@ import com.tanpu.common.utils.RedisUtils;
import com.tanpu.fund.service.impl.FundLatestNavService; import com.tanpu.fund.service.impl.FundLatestNavService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
...@@ -12,6 +14,7 @@ import javax.annotation.Resource; ...@@ -12,6 +14,7 @@ import javax.annotation.Resource;
* <p> * <p>
*/ */
@Slf4j @Slf4j
@Component
public class FundLatestNavJob { public class FundLatestNavJob {
@Resource @Resource
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment