Skip to content

Commit

Permalink
[ISSUE #10951]Autowired members must be defined in valid Spring bean (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
E1se2t committed Aug 14, 2023
1 parent 66d723d commit 797379b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand All @@ -55,11 +54,14 @@ public class CapacityManagementAspect {
"execution(* com.alibaba.nacos.config.server.controller.ConfigController.deleteConfig(..)) && args"
+ "(request,response,dataId,group,tenant,..)";

@Autowired
private CapacityService capacityService;

@Autowired
private ConfigInfoPersistService configInfoPersistService;
private final CapacityService capacityService;

private final ConfigInfoPersistService configInfoPersistService;

public CapacityManagementAspect(ConfigInfoPersistService configInfoPersistService, CapacityService capacityService) {
this.configInfoPersistService = configInfoPersistService;
this.capacityService = capacityService;
}

/**
* Need to judge the size of content whether to exceed the limitation.
Expand Down

0 comments on commit 797379b

Please sign in to comment.