forked from Gitlink/soft_bot
style(微服务化改造): 循环依赖升级改造
This commit is contained in:
parent
c745532df6
commit
fa139fffb3
|
@ -10,7 +10,6 @@ import com.gitlink.softbot.utils.AuthOperate;
|
|||
import com.gitlink.softbot.utils.GitLinkApi;
|
||||
import com.gitlink.softbot.vo.*;
|
||||
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.gitlink.softbot.vo.BotInputVO;
|
||||
import javax.annotation.Resource;
|
||||
|
|
|
@ -20,6 +20,7 @@ import com.gitlink.softbot.vo.*;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
@ -55,6 +56,7 @@ public class MarketService implements IMarketService {
|
|||
GitLinkApi api;
|
||||
|
||||
@Autowired
|
||||
@Lazy
|
||||
UserService userService;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -23,9 +23,6 @@ import java.util.List;
|
|||
@Slf4j
|
||||
public class AsyncDeleteWebhookService {
|
||||
|
||||
@Resource
|
||||
private UserService userService;
|
||||
|
||||
@Autowired
|
||||
private GitLinkApi api;
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ import com.gitlink.softbot.utils.response.AddWebhookResponse;
|
|||
import com.gitlink.softbot.vo.Webhook;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.retry.annotation.Backoff;
|
||||
import org.springframework.retry.annotation.Recover;
|
||||
import org.springframework.retry.annotation.Retryable;
|
||||
|
@ -26,6 +27,7 @@ import java.util.List;
|
|||
public class AsyncUpdateWebhookService {
|
||||
|
||||
@Resource
|
||||
@Lazy
|
||||
private UserService userService;
|
||||
|
||||
@Autowired
|
||||
|
|
Loading…
Reference in New Issue