diff --git a/src/main/java/com/muyu/common/log/service/AsyncLogService.java b/src/main/java/com/muyu/common/log/service/AsyncLogService.java index 46e1cdf..ee9319b 100644 --- a/src/main/java/com/muyu/common/log/service/AsyncLogService.java +++ b/src/main/java/com/muyu/common/log/service/AsyncLogService.java @@ -7,6 +7,8 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; +import javax.annotation.Resource; + /** * 异步调用日志服务 * @@ -14,7 +16,7 @@ import org.springframework.stereotype.Service; */ @Service public class AsyncLogService { - @Autowired + @Resource private RemoteLogService remoteLogService; /**