springboot整合tkmybatis報的錯


 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]

這個錯誤很坑爹,其實就是倉庫壞了,換個倉庫重新下載坐標就行了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM