Coder Social home page Coder Social logo

waylau / spring-5-book Goto Github PK

View Code? Open in Web Editor NEW
305.0 28.0 98.0 455 KB

Spring 5 Samples(Spring 5 案例大全/《Spring 5 开发大全》示例源码) covers Spring 5, Spring MVC, Spring WebFlux, Spring Boot and Spring Cloud.

Home Page: https://waylau.com/books/

spring spring5 spring-boot spring-cloud

spring-5-book's People

Contributors

waylau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-5-book's Issues

P40 错误

"private MovieFinder movieFinder" 应为"private final MovieFinder movieFinder",
SimpleMovieLister和MovieFinder应当都是bean

2.2.19实战:自定义scope的例子,不清晰

这是问题的图片

以下两个序号对应图片中的序号:
对应代码:com.waylau.spring.scope.ThreadScope

  1. ThreadScope中为何要维护一个ThreadLocal?其中保存的Map是什么作用?
  2. ObjectFactory是什么作用?运行到此处的ObjectFactory.get()的结果为何是MessageServiceImpl?
    在没有注释解释或者前文解释的情况下,本书读者实践到2处将产生很大疑惑。

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

应翻译为中文,如下:

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.”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.