- 17 submitted: last submission 09 Dec 2016

Page number: 213

Qauntity

should be:

Quantity

Page number: 167

additonally

should be:

additionally

Page number: 13

operating system architecture type (32 bit or 62 bit)

should be:

operating system architecture type (32 bit or 64 bit)

Pg no: 61 | Chapter 2: Time for action – creating a service object
(Step 4)

public void processOrder(String productId, long quantity) {
Product productById = productRepository.
getProductById(productId);
if(productById.getUnitsInStock() < quantity){
throw new IllegalArgumentException("Out of Stock. Available 
Units in stock"+ productById.getUnitsInStock());
}
productById.setUnitsInStock(productById.getUnitsInStock() - 
quantity);
}
}

should be:

public void processOrder(String productId, int count) {
Product productById = productRepository.
getProductById(productId);
if(productById.getUnitsInStock() < count){
throw new IllegalArgumentException("Out of Stock. Available 
Units in stock"+ productById.getUnitsInStock());
}
productById.setUnitsInStock(productById.getUnitsInStock() - 
count);
}
}

Pg no: 126 | Chapter 5: Pop quiz - static view (Option 2)

/resources/pdf/product/manuals/manual-P1234.pdf 
should be: 
/resources/product/manuals/manual-P1234.pdf

Errata type : Code   Page No: 97

In the section Time for action – serving and processing forms, step no 7 on page 97,

form:textarea id="description" path="description" rows = "2"/>

There should be a "<" at the start. It should be <form:textarea id="description" path="description" rows = "2"/>

Errata type: Code

In section Have a go hero – accessing the product domain object via a service, on page 65, in step 1,

It is:
List <Products> getAllProducts(); 
but it should be:
List <Product> getAllProducts();

Errata type: Code

In section Have a go hero – listing all our customers, on page 66, in step 4. It is:

List <Customers> getAllCustomers();

but it should be:
List <Customer> getAllCustomers();

Errata type: Code

In section Time for action – serving and processing forms, on page 96, in step 7,

It is :

<!-- Similarly bind <form:input> tag for name,
        unitPrice,manufacturer,category,unitsInStock and 
          unitsInOrder fields-->

It should be:

<%-- Similarly bind <form:input> tag for name,unitPrice,manufacturer,category,unitsInStock and unitsInOrder fields 
--%>

Errata type: Code

In section Have a go hero – adding multiple filters to list products, on page 92, in bullet point 3 It is:

http://localhost:8080/webstore/products/tablet/price;low=200;hi
gh=400?manufacturer="Google"

It should be

http://localhost:8080/webstore/products/tablet/price;low=200;hi
gh=400?manufacturer=Google

Errata type: Code

In section Time for action – creating a service object, on page 60 and 61. It is

void processOrder(String  productId, int count);

It should be:

void processOrder(String  productId, long quantity);

Type: Suggestion

On page 28, section Time for action – running the project, for step 1

The menu [Run As | Run on server] will not appear until you do [Maven | 
Update Project]

On page 64, section Have a go hero – accessing the product domain object via a service"

The URL in step 5 should be: 
http://localhost:8080/webstore/products/ 
instead of: 
http://localhost:8080/webshop/products/

Page: 106, section Time for action – externalizing messages

<spring:message code="addProdcut.form.productId.label"/>

should be:

<spring:message code="addProduct.form.productId.label"/>

Page: 58

Also, we learned earlier that if we configure our web application context as mentioned, 
it not only detects controllers (@controller),

should be:

Also, we learned earlier that if we configure our web application context as 
mentioned, it not only detects controllers (@Controller), 

Page: 57

Remember we learned that Spring creates and manages beans (objects) for every 
@controller class? 
should be: 
Remember we learned that Spring creates and manages beans (objects) for every 
@Controller class?

Page 252, Time for action – creating views for every view state (7th point)

<li><a href="<spring:URL value="/products/"/>">Products</a></li>

should be:

<li><a href="<spring:url value="/products/"/>">Products</a></li>

Page: 130, section Time for action – adding images to the product page

Given code is :

addProdcut.form.productImage.

Correct code is:

addProduct.form.productImage.label 

Page 142. Time for action – adding an exception handler Given code is: if(productById == null){ throw new ProductNotFoundException("No products found with the product id: "+ productId); } Correct code is: if(productById == null){ throw new ProductNotFoundException("No product found", productId); }

Page 130. Time for action – adding images to the product page

Given Code:

File(rootDirectory+"resources\\images\\"+
productToBeAdded.getProductId() + ".png"));
 
Correct code is:
 
File(rootDirectory+"resources/images/"+
productToBeAdded.getProductId() + ".png"));

A list of errors in this book are mentioned on this link along with their page numbers: https://docs.google.com/document/d/12fX-X23gfD_3scIS3MgAsSV3b2D87cFQaC94h3TYM-8/edit

Spring MVC Beginner’s Guide勘误表的更多相关文章

  1. Spring MVC mapping[From Spring MVC Beginner's Guide]

    In a Spring MVC application, the URL can logically be divided into five parts (see the following fig ...

  2. 这书真的不错--Spring MVC Beginner's Guide

    五百多页,我干到三百多页了. 每个知识点都有说明,操作,解释. 学SPRING MVC,有它就够了. 遗憾的是,这个PDF的文档格式太稀松啦,且,无中文版~~~ 我都想作汉化翻译工作了...算了,忍住 ...

  3. Spring MVC Beginner's Guide--应该看第二次

    第一遍,就差WEBFLOW知识点没过了.. 真的值得好好再看第二次呢.. 样例工程算是比较多的啦. 学到真的不少..

  4. springboot Serving Web Content with Spring MVC

    Serving Web Content with Spring MVC This guide walks you through the process of creating a "hel ...

  5. spring mvc+ELK从头开始搭建日志平台

    最近由于之前协助前公司做了点力所能及的事情,居然收到了一份贵重的端午礼物,是给我女儿的一个乐高积木,整个有7大包物件,我花了接近一天的时间一砖一瓦的组织起来,虽然很辛苦但是能够从过程中体验到乐趣.这次 ...

  6. Step-by-Step XML Free Spring MVC 3 Configuration--reference

    The release of Spring 2.5 reduce the burden of XML by introduction annotation based configuration, b ...

  7. Spring MVC使用commons fileupload实现文件上传功能

    通过Maven建立Spring MVC项目,引入了Spring相关jar依赖. 1.为了使用commons fileupload组件,需要在pom.xml中添加依赖: <properties&g ...

  8. spring、spring mvc以及IOC的阅读

    spring vs spring-mvc spring是应用级框架 spring mvc只是一个mvc框架 spring现在包含很多子模块,我们用的最多的是依赖注入. spring模块可分为以下: C ...

  9. 如何用Java类配置Spring MVC(不通过web.xml和XML方式)

    DispatcherServlet是Spring MVC的核心,按照传统方式, 需要把它配置到web.xml中. 我个人比较不喜欢XML配置方式, XML看起来太累, 冗长繁琐. 还好借助于Servl ...

随机推荐

  1. Li的前期工作Level_Set_Evolution_Without_Re-initialization_A_New_Variational_Formulation

    注意:因为页面显示原因.里头的公式没能做到完美显示,有须要的朋友请到我的资源中下载 无需进行又一次初始化的水平集演化:一个新的变分公式 Chunming Li , Chenyang Xu , Chan ...

  2. iframe在ie和firefox中的高度兼容性问题解决

    1.问题描述: <iframe src="p_photo_cont_iframe.html" name="iframe" width="700& ...

  3. Easing圆环动画

    Easing圆环动画 效果 源码 https://github.com/YouXianMing/Animations // // CircleView.h // YXMWeather // // Cr ...

  4. 纯html上下翻滚效果公告板

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  5. (学)如何在Oracle中一次执行多条sql语句

    队长同学原来的地址:https://www.cnblogs.com/teamleader/archive/2007/05/31/765943.html队长同学原来的描述: 有时我们需要一次性执行多条s ...

  6. 中国计算机学会CCF推荐国际学术会议和期刊目录(PDF版,2015年)

    total: CCF推荐国际学术会议和期刊目录(下载) parts: 点击下载:  计算机体系结构并行与分布计算存储系统.pdf 点击下载:  计算机网络.pdf 点击下载:  网络与信息安全.pdf ...

  7. 使用Adt自带的工具进行Android自己主动化測试(三)

    在这个系列的上一篇文章中,我们介绍了MonkeyRunner,并提到假设依据坐标来编写自己主动化脚本的话存在着一定的局限性(点击文末"阅读原文"能够打开这篇文章查看).这篇文章将进 ...

  8. Objective-C:字符串的反转Reverse

    OC中字符串的反转方式可以用两种方式来处理: 第一种:从头到尾取出字符串的每一个字符,然后将其从尾到头添加到可变的字符串中,最后输出即可. 第二种:将OC内部的字符串转换为C语言中的字符串,然后动态分 ...

  9. go语言基础之二维数组

    1.二维数组 示例: package main //必须有个main包 import "fmt" func main() { //有多少个[]就是多少维 //有多少个[]就用多少个 ...

  10. 利用Python爬虫爬取指定天猫店铺全店商品信息

    本编博客是关于爬取天猫店铺中指定店铺的所有商品基础信息的爬虫,爬虫运行只需要输入相应店铺的域名名称即可,信息将以csv表格的形式保存,可以单店爬取也可以增加一个循环进行同时爬取. 源码展示 首先还是完 ...