【问题修复】:解决商城和IOT功能同时开启时mapper注入启动报错问题
This commit is contained in:
parent
743d88a4fc
commit
b7393ef403
|
@ -28,7 +28,7 @@ import static cn.iocoder.yudao.module.iot.enums.ErrorCodeConstants.PRODUCT_CATEG
|
|||
@Validated
|
||||
public class IotProductCategoryServiceImpl implements IotProductCategoryService {
|
||||
|
||||
@Resource
|
||||
@Resource(name = "iotProductCategoryMapper")
|
||||
private IotProductCategoryMapper iotProductCategoryMapper;
|
||||
|
||||
@Resource
|
||||
|
|
|
@ -33,7 +33,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
|
|||
@Validated
|
||||
public class ProductCategoryServiceImpl implements ProductCategoryService {
|
||||
|
||||
@Resource
|
||||
@Resource(name = "productCategoryMapper")
|
||||
private ProductCategoryMapper productCategoryMapper;
|
||||
@Resource
|
||||
@Lazy // 循环依赖,避免报错
|
||||
|
|
Loading…
Reference in New Issue