【问题修复】:解决商城和IOT功能同时开启时mapper注入启动报错问题

This commit is contained in:
Hhd 2025-03-28 10:03:55 +08:00
parent 743d88a4fc
commit b7393ef403
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import static cn.iocoder.yudao.module.iot.enums.ErrorCodeConstants.PRODUCT_CATEG
@Validated @Validated
public class IotProductCategoryServiceImpl implements IotProductCategoryService { public class IotProductCategoryServiceImpl implements IotProductCategoryService {
@Resource @Resource(name = "iotProductCategoryMapper")
private IotProductCategoryMapper iotProductCategoryMapper; private IotProductCategoryMapper iotProductCategoryMapper;
@Resource @Resource

View File

@ -33,7 +33,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
@Validated @Validated
public class ProductCategoryServiceImpl implements ProductCategoryService { public class ProductCategoryServiceImpl implements ProductCategoryService {
@Resource @Resource(name = "productCategoryMapper")
private ProductCategoryMapper productCategoryMapper; private ProductCategoryMapper productCategoryMapper;
@Resource @Resource
@Lazy // 循环依赖避免报错 @Lazy // 循环依赖避免报错