问答详情
源自:3-6 dao层开发

爆出异常,不知原因!

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()

提问者:OscarWo 2018-02-19 00:17

个回答

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

    DataSourceConfiguration 的注解少了吧