SpringBoot和Mybatis的java.lang.annotation.AnnotationFormatError: Invalid default错误

最新在学习SpringBoot时遇到一个问题



2018-12-07 13:23:34.610  INFO 11824 --- [           main] com.shiro_springBoot.Application         : Starting Application on DESKTOP-2H0RMVP with PID 11824 (D:\eclipseworkspace\Shiro_SpringBoot_demo\target\classes started by YANG_ZG in D:\eclipseworkspace\Shiro_SpringBoot_demo)
2018-12-07 13:23:35.600  INFO 11824 --- [           main] com.shiro_springBoot.Application         : No active profile set, falling back to default profiles: default
2018-12-07 13:23:34.604  INFO 11824 --- [           main] o.s.core.annotation.AnnotationUtils      : Failed to introspect annotations on [class com.shiro_springBoot.Application]: java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean()
2018-12-07 13:23:37.610 ERROR 11824 --- [           main] o.s.boot.SpringApplication               : Application startup failed
 
java.lang.annotation.AnnotationFormatError: Invalid default: public abstract 


 最后发现导报写错了,重新导入包就好了:

  
      org.mybatis.spring.boot
      mybatis-spring-boot-starter
      1.3.2
    

 

你可能感兴趣的:(Springboot,Mybatis)