Skip to content

fix @DSTransactional 无法获取注解属性|统一属性解析逻辑#543

Merged
huayanYu merged 1 commit into
baomidou:masterfrom
ZPZP1:master
Aug 11, 2023
Merged

fix @DSTransactional 无法获取注解属性|统一属性解析逻辑#543
huayanYu merged 1 commit into
baomidou:masterfrom
ZPZP1:master

Conversation

@ZPZP1

@ZPZP1 ZPZP1 commented Aug 9, 2023

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (check at least one)

  • [ √] Bugfix
  • Feature
  • [√ ] Code style
  • Refactor
  • Doc
  • Other, please describe:

The description of the PR:
修复@DSTransactional 无法获取类|接口|接口方法的注解属性,统一注解属性解析逻辑并将DataSourceClassResolver类中获取注解元信息的AnnotatedElementUtils.getMergedAnnotationAttributes()方法改为findMergedAnnotationAttributes(),前者不能获取到接口方法的注解元信息,导致可能导致切点切到但获取不到信息的情况。

Other information:
#542

@huayanYu huayanYu merged commit d9f2bd0 into baomidou:master Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants