fix: SysUserServiceImpl注入ISysBaseAPI产生循环依赖,加@Lazy解决
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+2
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user