yq преди 3 години
родител
ревизия
cb9f440ff0
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      service-backend/service-backend-biz/src/main/java/com/usky/backend/controller/SysTenantController.java

+ 2 - 1
service-backend/service-backend-biz/src/main/java/com/usky/backend/controller/SysTenantController.java

@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
 
 
 /**
@@ -18,7 +19,7 @@ import org.springframework.web.bind.annotation.RequestParam;
  *
  * @since 2022-04-29
  */
-@Controller
+@RestController
 @RequestMapping("/sysTenant")
 public class SysTenantController {