Spring boot basePackages 通配符* 找不到Bean

Spring boot basePackages 通配符* 找不到Bean 今天遇到了一個關於spring boot 組件@ComponentScan 中basePackages 使用通配符* 找不到Bean的問題 目錄結構中BussinessPerson與Dog類中都有標註有@Component註解,結果掃描不到。 然後刪除通配符,結果運行成功。 之後修改成了**通配符,結果也運行成功了。 之後
相關文章
相關標籤/搜索