woody hace 1 año
padre
commit
a5c7b8d4c5

+ 0 - 2
src/main/java/com/chelvc/cloud/maintain/controller/IndexController.java

@@ -11,7 +11,6 @@ import com.chelvc.cloud.vehicle.api.param.NearbyQueryParam;
 import com.chelvc.cloud.vehicle.api.service.MerchantService;
 import com.chelvc.framework.base.annotation.UnifiedResponseBody;
 import org.apache.dubbo.config.annotation.DubboReference;
-import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -25,7 +24,6 @@ import org.springframework.web.bind.annotation.RestController;
 @Validated
 @RestController
 @UnifiedResponseBody
-@PreAuthorize("isBusiness('CUSTOMER', 'MERCHANT')")
 public class IndexController {
     @DubboReference
     private UsageService usageService;

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

@@ -40,4 +40,9 @@ dubbo:
     group: ${spring.profiles.active}
     check: false
     timeout: 10000
-    retries: 0
+    retries: 0
+
+platform:
+  security:
+    resource:
+      permit: /**/index