-
Notifications
You must be signed in to change notification settings - Fork 794
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
印次:2019 年 5 月第 3 次印刷 的几处修改建议 #98
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
《Spring Boot 编程思想》勘误
2019 年 3 月第 1 版
2019 年 5 月第 3 次印刷
【第 71 页】 Servlet 规范 Jetty 容器版本支持
【第 153、154 页】 几处 元素 应为 属性
【第 159 页】排版问题 scan 前多了空格
【第 209 页】AnnotationAttributes 扩展 LinkedHashMap 目的论述存在歧义
属性方法声明 :有人(包括我)误认为是 注解类的属性方法 在 源代码里声明顺序。
除上面绿色修改建议外,另一完全使用中文描述候选建议方案:
+ 又要确保其顺序保持与运行时反射加载的属性方法数组顺序一致。
当把 属性方法声明顺序 误认为是属性方法在源代码中声明的顺序时,实际代码验证这种理解是错的。而真正 属性方法声明顺序 是与注解的 Class 对象调用
getDeclaredMethods()
方法返回的Method[]
数组顺序一致。 下面的源代码可以支持这一论点:
而之所以属性方法顺序不会与源代码中属性方法顺序一致,根源是 Class#getDeclaredMethods 方法返回的
Method[]
数组元素顺序的不确定性。 以下引用该方法的 JavaDoc 注释:
【第 294 页】词语颠倒
【第 330 页】单词黏连、拆开后中间加一个 “的” 表示 @AutoConfigureBefore @AutoConfigureAfter 两者的 name 属性
【第 538 页】缺少 Boot 单词
【第 558 页】SpringApplication 的 run(String... ) 方法调用 handleRunFailure 多了一个参数
The text was updated successfully, but these errors were encountered: