1. Could not autowire. No beans of 'Source' type found.
match-service -> match -> impl -> LimitPriceMatchServiceImpl
@Service
@Slf4j
public class LimitPriceMatchServiceImpl implements MatchService, InitializingBean
// 改成
@Service
@Slf4j
@EnableBinding(Source.class)
public class LimitPriceMatchServiceImpl implements MatchService, InitializingBean
ps:https://www.cnblogs.com/xulijun137/p/12209766.html
2. match-server -> model -> 缺少 TradePlateItem 类
package org.example.model;
import lombok.Data;
import java.math.BigDecimal;
/**
* 盘口数据详情
*/
@Data
public class TradePlateItem {
/**
* 交易价格
*/
private BigDecimal price;
/**
* 交易数量
*/
private BigDecimal amount;
}
3.exchange-server -> service->impl -> EntrustOrderServiceImpl -> 330行
//改成
buyTurnoverOrder.setCreated(new Date());
buyTurnoverOrder.setTradeType(1);
turnoverOrderService.save(buyTurnoverOrder);
4.