|
|
@@ -2,6 +2,7 @@ package com.etotem.cfc.controller.admin;
|
|
|
|
|
|
import com.etotem.cfc.common.Result;
|
|
|
import com.etotem.cfc.service.DataMigrationService;
|
|
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
@@ -11,6 +12,7 @@ import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/api/migration")
|
|
|
+@ConditionalOnProperty(name = "sfms.datasource.enabled", havingValue = "true", matchIfMissing = false)
|
|
|
public class DataMigrationController {
|
|
|
|
|
|
@Resource
|