|
@@ -3,18 +3,19 @@ package com.css.simulation.resource.scheduler.controller;
|
|
|
|
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
import com.css.simulation.resource.scheduler.service.AlgorithmService;
|
|
import com.css.simulation.resource.scheduler.service.AlgorithmService;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+
|
|
@RefreshScope
|
|
@RefreshScope
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/algorithm")
|
|
@RequestMapping("/algorithm")
|
|
public class AlgorithmController {
|
|
public class AlgorithmController {
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
AlgorithmService algorithmService;
|
|
AlgorithmService algorithmService;
|
|
|
|
|
|
|
|
|