|
@@ -4,6 +4,7 @@ import com.gyee.backconfig.config.R;
|
|
import com.gyee.backconfig.model.auto.Companys;
|
|
import com.gyee.backconfig.model.auto.Companys;
|
|
import com.gyee.backconfig.service.NewtreeService;
|
|
import com.gyee.backconfig.service.NewtreeService;
|
|
import com.gyee.common.model.StringUtils;
|
|
import com.gyee.common.model.StringUtils;
|
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -21,6 +22,7 @@ public class NewtreeController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
|
|
+ @Scheduled(cron = "*/5 * * * * ?")
|
|
@GetMapping(value = "/treels")
|
|
@GetMapping(value = "/treels")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|