Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.3节问题 #90

Open
nanlei opened this issue Oct 14, 2020 · 0 comments
Open

7.3节问题 #90

nanlei opened this issue Oct 14, 2020 · 0 comments

Comments

@nanlei
Copy link

nanlei commented Oct 14, 2020

7.3.2节
173页

NameRepository的注解层次问题,本身NameRepository是定义的仓储类,而不是注解了,下面的层次展示是不是不太准确。

改为下面表述比较好?

调整前:

  • NameRepository
    • @StringRepository
      • @Component

调整后:

  • NameRepository
    • @StringRepository
      • @Repository
        • @Component

181页

NameRepository不应该有@吧,后面的Spring@Repository明显是写错了。

下方的表述中,是不是也有错误,应该是:

  • annotationClass应该是@StringRepository(和Debug结果一致)
  • metaAnnotations注解数组仅获取当前注解@StringRepository所标注的注解
  • StringRepository在2.5.6.SEC03中标注@Repository

最下方的代码段,并非3.0.0.RELEASE中的实现,应该是3.2.xAnnotationAttributesReadingVisitor.java的实现为

三个小版本还是有细微差别的,书中印刷的至少是3.2.x才有的

182页

中间的表述中,应该是:
结合@StringRepository进行分析

7.3.4节
199页
下方文字第二行,应该是因此Transactional.class也是AnnotatedElement对象,而不是Transactionalservice.class

如有理解错误,还请指正

@nanlei nanlei changed the title 7.3.2节问题 7.3节问题 Oct 21, 2020
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

No branches or pull requests

1 participant