Quellcode durchsuchen

优化调整接口路径

hubin vor 2 Jahren
Ursprung
Commit
1db6b884ef

+ 1 - 4
src/main/java/com/aizuda/boot/config/BootResponseBodyAdvice.java

@@ -5,10 +5,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.RestControllerAdvice;
 
 @Component
-@RestControllerAdvice({
-        "com.aizuda.service",
-        "com.aizuda.boot.controller"
-})
+@RestControllerAdvice
 public class BootResponseBodyAdvice extends ApiResponseBodyAdvice {
 
 }

+ 1 - 1
src/main/resources/application.yml

@@ -22,7 +22,7 @@ springdoc:
 aizuda:
   service-system:
     # 默认 /sys 可自定义前缀
-    api-prefix: /sys
+    api-prefix: /sys2
 
 # orm config
 mybatis-plus: