spring-5-book
spring-5-book copied to clipboard
2018年10月第1版2018年10月第1次印刷勘误、改进项
P3
“2011 年7 月28 日,Oracle 公司发布 Java 7 正式版。该版本新增了(如try-with-resources 语句、增强switch-case 语句)支持字符串类型等特性。”应为“2011 年7 月28 日,Oracle 公司发布 Java 7 正式版。该版本新增了许多特性,如try-with-resources 语句、增强switch-case 语句、支持字符串类型等。”
P4
第2段之后,增加如下段落“2018年9月25日,Oracle官方宣布Java 11正式发布。该版本带来了官网公开的17个特性增强。”
P6
“编成模型复杂”应为“编程模型复杂”
P7
“EJB 最大的问题就是使用的复杂性”应为“EJB 最大的问题就是使用上的复杂性”
“①轻量级 IoC 容器。IoC 容器是用于管理所有 bean 的声明周期”应为“①轻量级 IoC 容器。IoC 容器是用于管理所有 bean 的生命周期”
P12
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P13
更新截图1-3及1-4
P14
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P18
“5.0.5.RELEASE”应为“5.1.1.RELEASE”
P19
“典型示例为servlet-api,这类依赖通常由应用服务来提供。”应为“典型示例为servlet-api,这类依赖通常由应用服务器来提供。”
P24
“5.0.5.RELEASE”应为“5.1.1.RELEASE”
P48
“traditional declaration”应为“传统的声明方式”。
“c-namespace declaration”应为“c命名空间声明方式”。
P56
“那么将会抛出一个 IllegalStateException 来说明使用了 scope。”应为“那么将会抛出一个 IllegalStateException 来说明错误地使用了 scope。”
P69
在“1. @Required”之前加一段承上启下的话“下面将详细介绍这些注解的用法。”
P73
“毫无疑问,最好的 Spring 配置是基于 XML 的配置”应为“毫无疑问,最早的 Spring 配置是基于 XML 的配置”
P74
“例如,Spring MVC 的 @RestController 注解就是 @Controller和 @ResponseBody。”应为“例如,Spring Web MVC的@RestController注解就是@Controller和@ResponseBody的组合”
P88
“这些接口一起为 Spring 特效消息解析提供了基础。”应为“这些接口一起为 Spring 特定消息解析提供了基础。”
P96
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P111
最后一段代码:
xml <property name="template"
value="classpath:some/resource/path/myTemplate.txt">xml
<property name="template" value="file:///some/resource/path/myTemplate.
txt"/>
应为:
<property name="template" value="classpath:some/resource/path/myTemplate.txt">
<property name="template" value="file:///some/resource/path/myTemplate.txt"/>
P116
第一段代码
public static class PropertyValueTestBean
应为:
public static class PropertyValueTestBean {
P193
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P198
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P207
“单就此优势而言,即使用户使用 JTA,Spring 框架交易也是一种有价值的抽象。” 应为“单就此优势而言,即使用户使用 JTA,Spring 框架事务也是一种有价值的抽象。”
P210
删除“本节还讨论了如何通过相关的PlatformTransactionManager来触发(可选)事务同步。 ”这句
P213
“5.0.5.RELEASE”应为“5.1.1.RELEASE”
P219
“TransactionAspectSupport.currentTransactionStatus().setRollback Only();” 应为“TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();”
P233
更新图8-1
P236
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P260
代码里面的注释:
- @param id for the Customer to be updated
- @param rating the new value for credit rating
- @return number of rows updated
应翻译为中文,如下:
- @param id 是Customer的主键
- @param rating是信用评级的新值
- @return 更新数
P264
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P273
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P304
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P363
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P371
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P408
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P448
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P485
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P524
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P538
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P598
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
P599
“[3] ROD JOHNSON,Juergen Hoeller. Expert One-on-One J2EE Development without EJB[M]. Indiana:Wiley Publishing,2004. ”应为“[3] ROD JOHNSON,JUERGEN HOELLER. Expert One-on-One J2EE Development without EJB[M]. Indiana:Wiley Publishing,2004.”
23.6 节的标题及第二节中的"Quartz Schedule"应为“Quartz Scheduler”