waylau / spring-5-book Goto Github PK
View Code? Open in Web Editor NEWSpring 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 5 Samples(Spring 5 案例大全/《Spring 5 开发大全》示例源码) covers Spring 5, Spring MVC, Spring WebFlux, Spring Boot and Spring Cloud.
Home Page: https://waylau.com/books/
samples/s5-ch01-hello-world/src/main/java/com/waylau/spring/hello/MessagePrinter.java
其中@Autowired不用写,可以直接删除。
在看到原书P143页的“用户车辆信息”例子时,发现有一个MockBean,翻阅前后,没找到UserVehicleService的定义,请问一下这个的代码在哪里?
"private MovieFinder movieFinder" 应为"private final MovieFinder movieFinder",
SimpleMovieLister和MovieFinder应当都是bean
请问一下现在是不提供书籍markdown么?
仅能通过网站购买视频教程获取?
技术版本应为 Spring Boot 2.0.1.RELEASE
我们观察下我们的 initializr-start
项目的目录结构:
去掉 D:
“2011 年7 月28 日,Oracle 公司发布 Java 7 正式版。该版本新增了(如try-with-resources 语句、增强switch-case 语句)支持字符串类型等特性。”应为“2011 年7 月28 日,Oracle 公司发布 Java 7 正式版。该版本新增了许多特性,如try-with-resources 语句、增强switch-case 语句、支持字符串类型等。”
第2段之后,增加如下段落“2018年9月25日,Oracle官方宣布Java 11正式发布。该版本带来了官网公开的17个特性增强。”
“编成模型复杂”应为“编程模型复杂”
“EJB 最大的问题就是使用的复杂性”应为“EJB 最大的问题就是使用上的复杂性”
“①轻量级 IoC 容器。IoC 容器是用于管理所有 bean 的声明周期”应为“①轻量级 IoC 容器。IoC 容器是用于管理所有 bean 的生命周期”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
更新截图1-3及1-4
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.5.RELEASE”应为“5.1.1.RELEASE”
“典型示例为servlet-api,这类依赖通常由应用服务来提供。”应为“典型示例为servlet-api,这类依赖通常由应用服务器来提供。”
“5.0.5.RELEASE”应为“5.1.1.RELEASE”
“traditional declaration”应为“传统的声明方式”。
“c-namespace declaration”应为“c命名空间声明方式”。
“那么将会抛出一个 IllegalStateException 来说明使用了 scope。”应为“那么将会抛出一个 IllegalStateException 来说明错误地使用了 scope。”
在“1. @required”之前加一段承上启下的话“下面将详细介绍这些注解的用法。”
“毫无疑问,最好的 Spring 配置是基于 XML 的配置”应为“毫无疑问,最早的 Spring 配置是基于 XML 的配置”
“例如,Spring MVC 的 @RestController 注解就是 @controller和 @responsebody。”应为“例如,Spring Web MVC的@RestController注解就是@controller和@responsebody的组合”
“这些接口一起为 Spring 特效消息解析提供了基础。”应为“这些接口一起为 Spring 特定消息解析提供了基础。”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
最后一段代码:
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"/>
第一段代码
public static class PropertyValueTestBean
应为:
public static class PropertyValueTestBean {
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“单就此优势而言,即使用户使用 JTA,Spring 框架交易也是一种有价值的抽象。”
应为“单就此优势而言,即使用户使用 JTA,Spring 框架事务也是一种有价值的抽象。”
删除“本节还讨论了如何通过相关的PlatformTransactionManager来触发(可选)事务同步。
”这句
“5.0.5.RELEASE”应为“5.1.1.RELEASE”
“TransactionAspectSupport.currentTransactionStatus().setRollback Only();”
应为“TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();”
更新图8-1
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
代码里面的注释:
应翻译为中文,如下:
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“5.0.8.RELEASE”应为“5.1.1.RELEASE”
“[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.”
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.