爆出异常,不知原因!

来源:3-6 dao层开发

OscarWo

2018-02-19 00:17

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [E:\demo\target\classes\com\imooc\demo\config\dao\DataSourceConfiguration.class]; nested exception is java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean()

写回答 关注

1回答

  • brucemeng
    2018-02-19 16:49:21

    DataSourceConfiguration 的注解少了吧

SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91500 学习 · 621 问题

查看课程

相似问题