UfoSuggestController.java 555 Bytes
package com.yoho.search.consumer.restapi;

import com.yoho.search.consumer.job.UfoSuggestJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wangnan
 * @version 2019/6/5
 */
@Controller
public class UfoSuggestController {

    @Autowired
    private UfoSuggestJob ufoSuggestJob;

    @RequestMapping(value = "/ufo/suggest/executeAll")
    public void executeAll() {
        ufoSuggestJob.executeAll();
    }
}