diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java b/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java index 669f5a7..b08ed11 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java @@ -56,9 +56,7 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter { //注入为空 public static RabbitProducer rabbitProducer; - @Autowired - @Lazy - private ShopUtils shopUtils; + private ShopUtils shopUtils = SpringUtils.getBean(ShopUtils.class); @PostConstruct public void b() { @@ -144,7 +142,6 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter { return; } - log.info("信息: {}", shopUtils); ShopEatTypeInfoDTO eatModel = shopUtils.getEatModel(tableId, shopId); String tableCartKey = RedisCst.getTableCartKey(shopId, eatModel.isOpenTakeout() ? tableId : null, Integer.valueOf(userId)); log.info("netty连接 接收到数据 建立连接参数 key: {} param:{}", tableCartKey, jsonObject);