Skip to content

Commit

Permalink
Merge pull request #1 from JeffLi1993/master
Browse files Browse the repository at this point in the history
同步更新
  • Loading branch information
sun-ming authored Apr 9, 2019
2 parents 435b375 + d9496e6 commit f7d06c4
Show file tree
Hide file tree
Showing 42 changed files with 414 additions and 129 deletions.
205 changes: 112 additions & 93 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,112 @@
# springboot-learning-example
spring boot 实践学习案例,是 spring boot 初学者及核心技术巩固的最佳实践。

# 推荐
由于工作原因,我发表原创博客也需要编写的时间。期间很多人私我问题,没有及时得到回复,这里说声抱歉。因此,建一个星球

「泥瓦匠BYSocket」和朋友们讨论技术相关的话题,你一起来吧?

[泥瓦匠BYSocket 星球](https://t.zsxq.com/nMzjqbe "泥瓦匠BYSocket")

[泥瓦匠BYSocket 星球](https://t.zsxq.com/nMzjqbe "泥瓦匠BYSocket")

[泥瓦匠BYSocket 星球](https://t.zsxq.com/nMzjqbe "泥瓦匠BYSocket")

这个星球里面讲深入讨论 Java 、Java EE、Spring Boot 等框架技术及工作经验交流,分享一路技术走来的经验、教训。硬实力软实力、择业、职业规划等。

## 计划
Spring Boot 2.0 最大的热点肯定是 Web Flux。我这边也就开始操刀了...

Web Flux 努力进行中,尽情期待。唯一文章入口:[GitChat文章地址](http://gitbook.cn/gitchat/author/58968d35f2b669527d7a7c57 "gitchat")

## Spring For All 社区
[Spring For All 社区](http://www.spring4all.com/ "spring4all")是新组建的关于 Spring 的纯技术交流社区(涵盖 Spring Boot、Spring Cloud 等内容),集诸多开源爱好者和技术大牛贡献内容和交流问题。我们不夸大、不装逼、做最纯粹的技术分享!!!

看看我们超强的群众基础,欢迎有兴趣的朋友加入QQ群分享与交流:[点击立即加入](http://www.spring4all.com/about "about")

## 作者与学习乐园
源码地址:我的[GitHub地址](https://github.com/JeffLi1993 "GitHub")[OSCGit地址](https://git.oschina.net/jeff1993/springboot-learning-example "OSCGit")<br>
作者:[泥瓦匠BYSocket](http://www.bysocket.com/ "泥瓦匠BYSocket")<br>
关注微信公众号【泥瓦匠BYSokcet】,及时得到技术文章推送<br>
![公众号](http://www.bysocket.com/wp-content/uploads/2017/01/qrcode_for_gh_cd421e7eb7d6_430.jpg)

## 一、项目结构
「Spring Boot 那些事」:[传送门](http://www.bysocket.com/?page_id=1639 "Spring Boot 那些事")<br>

### 『 WebFlux 篇 』

WebFlux 系类文章入口:[GitChat文章地址](http://gitbook.cn/gitchat/author/58968d35f2b669527d7a7c57 "gitchat")

- springboot-webflux <br>
Spring Boot WebFlux 实现 Restful 服务


#### a. 『 基础 - 入门篇 』
- springboot-helloworld<br>
[《Spring Boot 之 HelloWorld 详解》](http://www.bysocket.com/?p=1124 "Spring Boot 之 HelloWorld详解")<br>
- springboot-properties <br>
[《Spring Boot 之配置文件详解》](http://www.bysocket.com/?p=1786 "Spring Boot 之配置文件详解")<br>

#### b. 『 基础 - Web 业务开发篇 』
- springboot-restful <br>
[《Springboot 实现 Restful 服务,基于 HTTP / JSON 传输》](http://www.bysocket.com/?p=1627 "Springboot 实现 Restful 服务,基于 HTTP / JSON 传输")<br>
[《Spring Boot 之 RESRful API 权限控制》](http://www.bysocket.com/?p=1080 "Spring Boot 之 RESRful API 权限控制")<br>
- springboot-freemarker <br>
[《Spring Boot 集成 FreeMarker 详解案例》](http://www.bysocket.com/?p=1666 "Spring Boot 集成 FreeMarker 详解案例")<br>
- springboot-validation-over-json
[《Spring Boot HTTP over JSON 的错误码异常处理》](http://www.bysocket.com/?p=1692 "Spring Boot HTTP over JSON 的错误码异常处理")<br>


#### c. 『 基础 – 数据存储篇 』
- springboot-mybatis <br>
[《Springboot 整合 Mybatis 的完整 Web 案例》](http://www.bysocket.com/?p=1610 "Springboot 整合 Mybatis 的完整 Web 案例")<br>
- springboot-mybatis-annotation <br>
[《Spring Boot 整合 Mybatis Annotation 注解的完整 Web 案例》](http://www.bysocket.com/?p=1811 "Spring Boot 整合 Mybatis Annotation 注解的完整 Web 案例")<br>
- springboot-mybatis-mutil-datasource <br>
[《Spring Boot 整合 Mybatis 实现 Druid 多数据源详解》](http://www.bysocket.com/?p=1712 "Spring Boot 整合 Mybatis 实现 Druid 多数据源详解")<br>


#### d. 『 基础 – 数据缓存篇 』
- springboot-mybatis-redis <br>
[《Spring Boot 整合 Redis 实现缓存操作》](http://www.bysocket.com/?p=1756 "Spring Boot 整合 Mybatis 实现 Druid 多数据源详解")<br>
- springboot-mybatis-redis-annotation <br>
[《Spring Boot 注解实现整合 Redis 作为缓存》](http://www.bysocket.com/?p=1756 "Spring Boot 整合 Mybatis 实现 Druid 多数据源详解")<br>

#### e. 『 其他篇 』
- springboot-elasticsearch <br>
[《Spring Boot 整合 Elasticsearch,实现 function score query 权重分查询》](http://www.bysocket.com/?p=1829 "Spring Boot 整合 Elasticsearch,实现 function score query 权重分查询")<br>
- springboot-dubbo-server <br>
- springboot-dubbo-client <br>
Dubbo 服务提供者工程和 Dubbo 服务消费者工程 <br>
[《Springboot 整合 Dubbo/ZooKeeper 详解 SOA 案例》](http://www.bysocket.com/?p=1681 "Springboot 整合 Dubbo/ZooKeeper 详解 SOA 案例")<br>
[《Spring Boot 中如何使用 Dubbo Activate 扩展点》](http://www.bysocket.com/?p=1782 "Spring Boot 中如何使用 Dubbo Activate 扩展点")<br>


#### 『 Spring Data ES 篇 』
- spring-data-elasticsearch-crud <br>
[《Spring Data Elasticsearch - 基本案例》](http://spring4all.com/article/70 "Spring Data Elasticsearch - 基本案例")<br>
- spring-data-elasticsearch-query <br>
spring-data-elasticsearch - 实战案例详解

最后,<br/>

[《Spring Boot教程与Spring Cloud教程》](https://git.oschina.net/didispace/SpringBoot-Learning "Spring Boot教程与Spring Cloud教程")<br>
### 谢谢赞助的ta们
<table>
<tbody>
<tr>
<td align="center" valign="middle">
<a href="https://e.coding.net/?utm_source=JeffLi" target="_blank">
<img width="300" src="https://github.com/dyc87112/SpringBoot-Learning/blob/master/sponsor/git-springboot-sponsor-1-500X166.jpg?raw=true">
</a>
</td>
<td align="center" valign="middle">
<a href="https://www.aliyun.com/acts/product-section-2019/new-users?userCode=6fxp5l2j" target="_blank">
<img width="300" src="https://github.com/dyc87112/SpringBoot-Learning/blob/master/sponsor/git-springboot-sponsor-2-300x100.jpg?raw=true">
</a>
</td>
</tr>
</tbody>
</table>

**Spring Boot 2.x 系列教程**,spring boot 实践学习案例,是初学者及核心技术巩固的最佳实践。

### 一、支持泥瓦匠
1. 拿起微信,关注博客左侧公众号:「泥瓦匠BYSocket 」
2. 给教程的开源代码仓库点个 **Star**
- [GitHub(springboot-learning-example)](https://github.com/JeffLi1993/springboot-learning-example "GitHub(springboot-learning-example)")
- [Gitee(springboot-learning-example)](https://gitee.com/jeff1993/springboot-learning-example "Gitee(springboot-learning-example)")
3. 帮忙分享该系列文章链接给更多的朋友

> 如果您对文字类教程不感冒或者想要通过综合案例学习Spring,那么给您推荐这个我觉得目前内容与价格最良心的视频课程:[“玩转Spring全家桶”](https://time.geekbang.org/course/intro/156?code=zqaEuXYpWbKaPeBaJc8GVoYCUHvoGhTlQQ7QZYoWWdI%3D&utm_term=zeusDUJ0V&utm_source=website&utm_medium=bysocket "“玩转Spring全家桶”")
### 二、系列文章目录

#### 『 基础 - 入门篇 』
- [Spring Boot 2.0 配置图文教程](https://www.bysocket.com/archives/2135)
- [Spring Boot 2.0 的快速入门(图文教程)](https://www.bysocket.com/archives/2119)
- [Spring Boot 之 HelloWorld 详解](http://www.bysocket.com/?p=1124)
- [Spring Boot 之配置文件详解](http://www.bysocket.com/?p=1786)

#### 『 基础 - Web 业务开发篇 』
- [Spring Boot Web 开发注解篇](http://www.bysocket.com/?p=1929)
- [Spring Boot 表单验证篇](http://www.bysocket.com/?p=1942)
- [Spring Boot 2.x 小新功能 – Spring Data Web configuration](http://www.bysocket.com/?p=1950)
- [Spring Boot 实现 Restful 服务,基于 HTTP / JSON 传输](http://www.bysocket.com/?p=1627)
- [Spring Boot 之 RESRful API 权限控制](http://www.bysocket.com/?p=1080)
- [Spring Boot 集成 FreeMarker](http://www.bysocket.com/?p=1666)
- [Spring Boot HTTP over JSON 的错误码异常处理](http://www.bysocket.com/?p=1692)
- Spring Boot 使用 Swagger2 构建 RESRful API 文档
- Spring Boot 集成 JSP
- Spring Boot 集成 Thymeleaf
- Spring Boot 单元测试的使用
- Spring Boot 热更新部署

#### 『 基础 – 数据存储篇 』
- [Spring Boot 整合 Mybatis 的完整 Web 案例](http://www.bysocket.com/?p=1610)
- [Spring Boot 整合 Mybatis Annotation 注解案例](http://www.bysocket.com/?p=1811)
- [Spring Boot 整合 Mybatis 实现 Druid 多数据源配置](http://www.bysocket.com/?p=1712)
- Spring Boot 整合使用 JdbcTemplate
- Spring Boot 整合 Spring-data-jpa
- Spring Boot 声明式事务管理

#### 『 基础 – 数据缓存篇 』
- [Spring Boot 整合 Redis 实现缓存操作](http://www.bysocket.com/?p=1756)
- Spring Boot 整合 Redis Annotation 实现缓存操作
- Spring Boot 整合 MongoDB 实现缓存操作
- Spring Boot 整合 EhCache 实现缓存操作

#### 『 基础 – 日志管理篇 』
- Spring Boot 默认日志 logback 配置解析
- Spring Boot 使用 log4j 记录日志
- Spring Boot 对 log4j 进行多环境不同日志级别的控制
- Spring Boot 使用 log4j 记录日志到 MongoDB
- Spring Boot 1.5.x 动态修改日志级别

#### 『 基础 – 应用篇 』
- Spring Boot Actuator 监控
- Spring Boot Web 应用部署

#### 『 提升 – 安全控制及权限篇 』
- Spring Boot 整合 Spring Security
- Spring Boot 整合 Shiro
- Spring Boot 整合 Spring Session

#### 『 提升 – 中间件篇 』
- [Spring Boot 2.x :通过 spring-boot-starter-hbase 集成 HBase](https://www.bysocket.com/archives/2162)
- Spring Boot 整合 RabbitMQ
- Spring Boot 整合 Quartz

#### 『 提升 – 源码篇 』
- Spring Boot 启动原理解析

#### 『 Elasticsearch 篇 』
- [Spring Boot 整合 Elasticsearch](http://www.bysocket.com/?p=1829)
- [深入浅出 spring-data-elasticsearch 之 ElasticSearch 架构初探(一)](http://www.bysocket.com/?p=1889)
- [深入浅出 spring-data-elasticsearch 系列 – 概述及入门(二)](http://www.bysocket.com/?p=1894)
- [深入浅出 spring-data-elasticsearch – 基本案例详解(三)](http://www.bysocket.com/?p=1899)
- [深入浅出 spring-data-elasticsearch – 实战案例详解(四)](http://www.bysocket.com/?p=1902)

#### 『 Dubbo 篇 』
- [Spring Boot 整合 Dubbo/ZooKeeper 详解 SOA 案例](http://www.bysocket.com/?p=1681)
- [Spring Boot 中如何使用 Dubbo Activate 扩展点](http://www.bysocket.com/?p=1782)
- [Spring Boot Dubbo applications.properties 配置清单](http://www.bysocket.com/?p=1805)

### 三、最后推荐

- [我的博客](http://www.bysocket.com "我的博客"):分享学习可落地的技术博文
- [我的GitHub](https://github.com/JeffLi1993 "我的GitHub"):Follow 下呗
- [我的Gitee](https://gitee.com/jeff1993 "我的Gitee"):Follow 下呗
- [Spring问答社区](http://www.spring4all.com/ "Spring问答社区"):如果您有什么问题,可以去这里发帖

### 四、我的公号
关注微信公众号,领取 Java 精选干货学习资料

<img width="300" src="http://www.bysocket.com/wp-content/uploads/2017/01/qrcode_for_gh_cd421e7eb7d6_430.jpg">
2 changes: 1 addition & 1 deletion chapter-1-spring-boot-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions chapter-2-spring-boot-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down Expand Up @@ -52,7 +52,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</plugin>

</plugins>
Expand Down
2 changes: 1 addition & 1 deletion chapter-3-spring-boot-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion chapter-4-spring-boot-validating-form-input/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion chapter-4-spring-boot-web-thymeleaf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion chapter-5-spring-boot-data-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion chapter-5-spring-boot-paging-sorting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion chapter-6-spring-boot-cache-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@
<!-- 第 5 章《数据存储》 -->
<module>chapter-5-spring-boot-data-jpa</module>
<!-- 第 6 章《数据缓存》 -->
<module>chapter-6-spring-boot-cache-redis</module>
<!--<module>chapter-6-spring-boot-cache-redis</module>-->

<!-- 第四章表单校验案例 -->
<module>chapter-4-spring-boot-validating-form-input</module>
<!-- 第五章数据分页排序案例 -->
<module>chapter-5-spring-boot-paging-sorting</module>

<module>springboot-hbase</module>
</modules>

</project>
2 changes: 1 addition & 1 deletion springboot-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion springboot-dubbo-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion springboot-dubbo-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion springboot-freemarker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<version>2.1.3.RELEASE</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 数据源配置
spring.datasource.url=jdbc:mysql://139.224.14.39:3306/springbootdb?useUnicode=true&characterEncoding=utf8
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springbootdb?useUnicode=true&characterEncoding=utf8
spring.datasource.username=root
spring.datasource.password=Hello123!@
spring.datasource.password=XX
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

## Mybatis 配置
Expand All @@ -18,4 +18,4 @@ spring.freemarker.content-type=text/html
spring.freemarker.expose-request-attributes=true
spring.freemarker.expose-session-attributes=true
spring.freemarker.request-context-attribute=request
spring.freemarker.suffix=.ftl
spring.freemarker.suffix=.ftl
Loading

0 comments on commit f7d06c4

Please sign in to comment.