baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.75k stars 1.19k forks source link

dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 #508

Closed afish177 closed 1 year ago

afish177 commented 1 year ago

Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。

Enviroment

JDK Version(required): 1.8

SpringBoot Version(required): 2.7.12

dynamic-datasource-spring-boot-starter Version(required): 4.0.0-B1

druid Version(optional): 1.2.18

Describe what happened

启动报错 之前 版本是dynamic-datasource-spring-boot-starter-3.6.1 druid 1.2.16 无误 这是能正常运行启动得 image

Expected Result:

Actual Result: image

If there is an exception,or aop invalid,please attach the exception trace:

java.lang.ArrayStoreException: null
    at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
    at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
    at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
    at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
    at java.lang.reflect.Executable.declaredAnnotations(Executable.java:602)
    at java.lang.reflect.Executable.declaredAnnotations(Executable.java:600)
    at java.lang.reflect.Executable.getDeclaredAnnotations(Executable.java:588)
    at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:630)
    at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotations(AnnotationsScanner.java:454)
    at org.springframework.core.annotation.AnnotationsScanner.isKnownEmpty(AnnotationsScanner.java:492)
    at org.springframework.core.annotation.TypeMappedAnnotations.from(TypeMappedAnnotations.java:251)
    at org.springframework.core.annotation.MergedAnnotations.from(MergedAnnotations.java:351)
    at org.springframework.core.annotation.MergedAnnotations.from(MergedAnnotations.java:330)
    at org.springframework.core.annotation.AnnotatedElementUtils.findAnnotations(AnnotatedElementUtils.java:800)
    at org.springframework.core.annotation.AnnotatedElementUtils.hasAnnotation(AnnotatedElementUtils.java:541)
    at org.springframework.context.annotation.BeanAnnotationHelper.isBeanAnnotated(BeanAnnotationHelper.java:41)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.isMatch(ConfigurationClassEnhancer.java:407)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$ConditionalCallbackFilter.accept(ConfigurationClassEnhancer.java:192)
    at org.springframework.cglib.proxy.Enhancer.emitMethods(Enhancer.java:1217)
    at org.springframework.cglib.proxy.Enhancer.generateClass(Enhancer.java:726)
    at org.springframework.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33)
    at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
    at org.springframework.cglib.core.ClassLoaderAwareGeneratorStrategy.generate(ClassLoaderAwareGeneratorStrategy.java:57)
Just paste your stack trace here!

Steps to reproduce

huayanYu commented 1 year ago

确实没法复现....,你能提交个最小化能复现的项目么

afish177 commented 1 year ago

我试试看 稍等  

浮生ふ物语 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月15日(星期四) 下午3:24 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [baomidou/dynamic-datasource-spring-boot-starter] dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 (Issue #508)

确实没法复现....,你能提交个最小化能复现的项目么

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

afish177 commented 1 year ago

这就是最小化 复现 麻烦了 大佬

浮生ふ物语 @.***

 

------------------ 原始邮件 ------------------ 发件人: "baomidou/dynamic-datasource-spring-boot-starter" @.>; 发送时间: 2023年6月15日(星期四) 下午3:24 @.>; @.**@.>; 主题: Re: [baomidou/dynamic-datasource-spring-boot-starter] dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 (Issue #508)

确实没法复现....,你能提交个最小化能复现的项目么

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

afish177 commented 1 year ago

这就是最小化 复现了 一个是可运行 老版本  一个是升级后得 麻烦大佬看看了 感谢大佬

浮生ふ物语 @.***

 

------------------ 原始邮件 ------------------ 发件人: "baomidou/dynamic-datasource-spring-boot-starter" @.>; 发送时间: 2023年6月15日(星期四) 下午3:24 @.>; @.**@.>; 主题: Re: [baomidou/dynamic-datasource-spring-boot-starter] dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 (Issue #508)

确实没法复现....,你能提交个最小化能复现的项目么

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

afish177 commented 1 year ago

确实没法复现....,你能提交个最小化能复现的项目么

确实没法复现....,你能提交个最小化能复现的项目么

邮箱已发送 辛苦大佬看看了

huayanYu commented 1 year ago

发哪去了,没收到

afish177 commented 1 year ago

大佬给个邮箱 我好发送 我是直接回复 发得  

浮生ふ物语 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月16日(星期五) 上午10:12 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [baomidou/dynamic-datasource-spring-boot-starter] dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 (Issue #508)

发哪去了,没收到

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

huayanYu commented 1 year ago

tracy5546@gmail.com

afish177 commented 1 year ago

已发送 谢谢大佬  

浮生ふ物语 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月16日(星期五) 上午10:24 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [baomidou/dynamic-datasource-spring-boot-starter] dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 (Issue #508)

@.***

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

huayanYu commented 1 year ago

兄弟,你是不是没理解最小化复现demo

afish177 commented 1 year ago

。。。 我这个是项目 我自己剥离 最简单得了 再小 真的不能了 

浮生ふ物语 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月16日(星期五) 上午10:33 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [baomidou/dynamic-datasource-spring-boot-starter] dynamic-datasource-spring-boot-starter-4.0.0-B1 升级报错 (Issue #508)

兄弟,你是不是没理解最小化复现demo

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

huayanYu commented 1 year ago

抱歉了,建议不要升级...