天天看点

《精通Spring MVC 4》——导读

《精通Spring MVC 4》——导读

**

前言

作为web开发人员,我愿意创建新的东西,将它们快速上线,然后将注意力转移到下一个新的想法上。

如今,所有的应用都互相连接在了一起,我们需要与社交媒体进行交互,促进产品和复杂系统的发展,为用户提供更大的价值。

直到现在,这些对于java开发人员来说都非常遥远和复杂。随着spring boot的诞生和云平台的平民化,我们可以在有限的时间内创建精彩的应用并让所有的人来访问,而这个过程不需要花一分钱。

在本书中,我们将会从头开始构建一个有用的web应用。这个应用有很多很棒的特性,如国际化、表单校验、分布式会话与缓存、社交登录、多线程编程等。

同时,我们还会对其进行完整的测试。

在本书结束之前,我们还会将这个小应用部署到云端,使它能够通过web进行访问。

如果你觉得这挺有意思的话,那么就别浪费时间了,马上开始着手编码吧!

尽管我们将要构建的是一个很高级的应用,但是并不需要你安装很多的东西。

我们将要构建的应用需要java 8。

我们并不强制你使用git,不过你绝对应该使用git来对自己的应用进行版本控制。如果你希望将应用部署到heroku上,那么会需要用到它。另外,借助git可以非常容易地回顾你的工作,通过查看代码的差异和历史来了解其演进过程。在第1章中包含了很多开始使用git的资源。

**[第1章 快速搭建spring web应用

<a href="https://yq.aliyun.com/articles/90886">1.2 intellij简介</a>

<a href="https://yq.aliyun.com/articles/90890">1.3 start.spring.io简介</a>

<a href="https://yq.aliyun.com/articles/90896">1.4 命令行方式简介</a>

<a href="https://yq.aliyun.com/articles/90910">1.5 那就正式开始吧</a>

1.5.1 gradle构建

1.5.2 让我们看一下代码

<a href="https://yq.aliyun.com/articles/90919">1.6 幕后的spring boot</a>

1.6.1 分发器和multipart配置

1.6.2 视图解析器、静态资源以及区域配置

<a href="https://yq.aliyun.com/articles/90923">1.7 错误与转码配置</a>

<a href="https://yq.aliyun.com/articles/90929">1.8 嵌入式servlet容器(tomcat)的配置</a>

1.8.1 http端口

1.8.2 ssl配置

1.8.3 其他配置

<a href="https://yq.aliyun.com/articles/90935">1.9 小结</a>

**[第2章 精通mvc架构

<a href="https://yq.aliyun.com/articles/90949">2.2 对mvc的质疑及其最佳实践</a>

2.2.1 贫血的领域模型

2.2.2 从源码中学习

<a href="https://yq.aliyun.com/articles/90953">2.3 spring mvc 1-0-1</a>

<a href="https://yq.aliyun.com/articles/90961">2.4 使用thymeleaf</a>

<a href="https://yq.aliyun.com/articles/90969">2.5 spring mvc架构</a>

2.5.1 dispatcherservlet

2.5.2 将数据传递给视图

<a href="https://yq.aliyun.com/articles/90975">2.6 spring表达式语言</a>

<a href="https://yq.aliyun.com/articles/90984">2.7 结束hello world,开始获取tweet</a>

2.7.1 注册应用

2.7.2 搭建spring social twitter

2.7.3 访问twitter

<a href="https://yq.aliyun.com/articles/90988">2.8 java 8的流和lambda表达式</a>

<a href="https://yq.aliyun.com/articles/90994">2.9 使用webjars实现质感设计</a>

2.9.1 使用布局

2.9.2 导航

<a href="https://yq.aliyun.com/articles/90998">2.10 检查点</a>

<a href="https://yq.aliyun.com/articles/91001">2.11 小结</a>