springboot的加载流程

在使用autowired,要在application的主类上加上扫描范围app

@MapperScan("com.bitauto.report.dao")
@ComponentScan("com.bitauto.report.*")
相关文章
相关标签/搜索