fix: SysUserServiceImpl注入ISysBaseAPI产生循环依赖,加@Lazy解决

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-08-05 09:12:37 +08:00
co-authored by Claude
parent 4a15ebe0d2
commit 1028a4e4e1
@@ -99,6 +99,7 @@ import org.slf4j.Logger;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CacheEvict;
import org.springframework.context.annotation.Lazy;
import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Cacheable;
import org.springframework.core.task.AsyncTaskExecutor; import org.springframework.core.task.AsyncTaskExecutor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@@ -203,6 +204,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
private UserDataRecordBmiMapper bmiMapper; private UserDataRecordBmiMapper bmiMapper;
@Autowired @Autowired
private IMHelloApi imHelloApi; private IMHelloApi imHelloApi;
@Lazy
@Autowired @Autowired
private ISysBaseAPI sysBaseAPI; private ISysBaseAPI sysBaseAPI;