springboot starter无法注入bean

注意,springboot2和3的注入方式不一样,参考: https://www.cnblogs.com/emptyironbox/p/17736143.html 在自定义 starter 项目时,如果组件无法被 @Com