1 java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class tk.mybatis.spring.annotation.MapperScan.factoryBean() 2 at java.lang.reflect.Method.getDefaultValue(Method.java:612) ~[na:1.8.0_151] 3 at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:132) ~[na:1.8.0_151] 4 at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85) ~[na:1.8.0_151] 5 at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:266) ~[na:1.8.0_151] 6 at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120) ~[na:1.8.0_151] 7 at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72) ~[na:1.8.0_151] 8 at java.lang.Class.createAnnotationData(Class.java:3521) ~[na:1.8.0_151] 9 at java.lang.Class.annotationData(Class.java:3510) ~[na:1.8.0_151] 10 at java.lang.Class.getAnnotations(Class.java:3446) ~[na:1.8.0_151] 11 at org.springframework.core.type.StandardAnnotationMetadata.<init>(StandardAnnotationMetadata.java:70) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE] 12 at org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition.<init>(AnnotatedGenericBeanDefinition.java:58) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE] 13 at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.doRegisterBean(AnnotatedBeanDefinitionReader.java:216) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE] 14 at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.registerBean(AnnotatedBeanDefinitionReader.java:145) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE] 15 at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.register(AnnotatedBeanDefinitionReader.java:135) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE] 16 at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:158) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 17 at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:135) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 18 at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:127) ~[spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 19 at org.springframework.boot.SpringApplication.load(SpringApplication.java:717) [spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 20 at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:392) [spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 21 at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 22 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 23 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.5.RELEASE.jar:2.1.5.RELEASE] 24 at com.itheima.user.UserApplication.main(UserApplication.java:15) [classes/:na]
这个错误很坑爹,其实就是仓库坏了,换个仓库重新下载坐标就行了
原文:https://www.cnblogs.com/bo123/p/11734625.html