package com.xc.controller; import com.xc.common.ServerResponse; import com.xc.service.InitStockListService; import com.xc.vo.stock.StockVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; @Controller @RequestMapping("/init/redis/") public class InitStockListRedisController { @Autowired private InitStockListService initStockListService; @RequestMapping({"initStockToRedis.do"}) @ResponseBody public ServerResponse initStockToRedis() { initStockListService.initStockToRedis(); return ServerResponse.createBySuccess(); } }