springboot 整合mybatis報錯 required a bean of type '**' that could not be found

解決辦法springboot啓動類添加掃描註解(紅色字體)

@SpringBootApplication
@MapperScan("com.cloudtop.springbootmybatis.mapper")
public class SpringbootMybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootMybatisApplication.class, args);
    }

}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章