谭斌 2 年之前
父節點
當前提交
12160a2d28
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      device-api-service/src/main/java/com/xy/service/DeviceDataServiceImpl.java

+ 2 - 2
device-api-service/src/main/java/com/xy/service/DeviceDataServiceImpl.java

@@ -21,7 +21,7 @@ import com.xy.utils.enums.DictSonEnum;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -46,7 +46,7 @@ import static com.xy.utils.PlusBeans.toPageBean;
  * @since 2023-01-11
  */
 @Service
-@AllArgsConstructor(onConstructor_ = @Autowired)
+@AllArgsConstructor(onConstructor_ = @Lazy)
 @Api(tags = "设备统计数据")
 public class DeviceDataServiceImpl extends ServiceImpl<DeviceDataMapper, DeviceData> implements DeviceDataService {