今天听课的时候,发现Springboot注入的是接口而非实现类,即:
@Autowired
private IBtcService iBtcService;
而实际情况是 IBtcServiceImpl 是IBtcService的实现类。
看了一圈注解,很多东西还是不理解,所以我就想简单测试一下,注入接口,会不会实现实现类里面的方法
@Service
public class IBtcServiceImpl extends ServiceImpl<btcRawDao