|
@@ -6,10 +6,10 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLog;
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLogFactory;
|
|
@@ -19,7 +19,7 @@ import cn.com.qmth.examcloud.config.center.core.PropertiesLoader;
|
|
|
import cn.com.qmth.examcloud.web.bootstrap.BootstrapSecurityUtil;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
-@RestController
|
|
|
+@Controller
|
|
|
@RequestMapping("configCenter")
|
|
|
public class ConfigCenterController {
|
|
|
|
|
@@ -39,6 +39,7 @@ public class ConfigCenterController {
|
|
|
String configCenterActive = BootstrapSecurityManager.getInstance().getActive();
|
|
|
if (!configCenterActive.equals(active)) {
|
|
|
log.error("active is wrong");
|
|
|
+ return new ResponseEntity<>("active is wrong", HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
}
|
|
|
|
|
|
return new ResponseEntity<String>("OK", HttpStatus.OK);
|