首页 > 编程语言 > 详细

springboot整合tkmybatis报的错

时间:2019-10-24 21:50:43      阅读:118      评论:0      收藏:0      [点我收藏+]
 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]

这个错误很坑爹,其实就是仓库坏了,换个仓库重新下载坐标就行了

springboot整合tkmybatis报的错

原文:https://www.cnblogs.com/bo123/p/11734625.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!