SpringBoot-Learning-作者:翟永超

来源:互联网 发布:centos lnmp安装包 编辑:程序博客网 时间:2024/05/20 23:05

SpringBoot-Learning

本项目内容为spring Boot教程程序样例。

作者博客:http://blog.didispace.com

  • Spring Boot系列博文:http://blog.didispace.com/categories/Spring-Boot/
  • Spring Cloud系列博文:http://blog.didispace.com/tag/spring-cloud/
  • Spring Cloud中文社区:http://bbs.springcloud.com.cn/

如您觉得该项目对您有用,欢迎点击右上方的Star按钮,给予支持!!

如有问题,可联系:didi@potatomato.club

样例列表

快速入门

  • chapter1:基本项目构建(可作为工程脚手架),引入web模块,完成一个简单的RESTful API

工程配置

  • chapter2-1-1:配置文件详解:自定义属性、随机数、多环境配置等

Web开发

  • chapter3-1-1:构建一个较为复杂的RESTful API以及单元测试
  • chapter3-1-2:使用Thymeleaf模板引擎渲染web视图
  • chapter3-1-3:使用Freemarker模板引擎渲染web视图
  • chapter3-1-4:使用Velocity模板引擎渲染web视图
  • chapter3-1-5:使用Swagger2构建RESTful API
  • chapter3-1-6:统一异常处理

数据访问

  • chapter3-2-1:使用JdbcTemplate
  • chapter3-2-2:使用Spring-data-jpa简化数据访问层(推荐)
  • chapter3-2-3:多数据源配置(一):JdbcTemplate
  • chapter3-2-4:多数据源配置(二):Spring-data-jpa
  • chapter3-2-5:使用NoSQL数据库(一):Redis
  • chapter3-2-6:使用NoSQL数据库(二):MongoDB
  • chapter3-2-7:整合MyBatis
  • chapter3-2-8:MyBatis注解配置详解

事务管理

  • chapter3-3-1:使用事务管理
  • chapter3-3-2:[分布式事务(未完成)]

其他内容

  • chapter4-1-1:使用@Scheduled创建定时任务
  • chapter4-1-2:使用@Async实现异步调用

日志管理

  • chapter4-2-1:默认日志的配置
  • chapter4-2-2:使用log4j记录日志
  • chapter4-2-3:对log4j进行多环境不同日志级别的控制
  • chapter4-2-4:使用AOP统一处理Web请求日志
  • chapter4-2-5:使用log4j记录日志到MongoDB

安全管理

  • chapter4-3-1:使用Spring Security
  • chapter4-3-2:[使用Spring Session(未完成)]

缓存支持

  • chapter4-4-1:注解配置与EhCache使用
  • chapter4-4-2:使用Redis做集中式缓存

邮件发送

  • chapter4-5-1:实现邮件发送:简单邮件、附件邮件、嵌入资源的邮件、模板邮件

消息服务

  • chapter5-1-1:[JMS(未完成)]
  • chapter5-2-1:Spring Boot中使用RabbitMQ

Dubbo进行服务治理

  • chapter9-2-1:[Spring Boot中使用Dubbo进行服务治理]
  • chapter9-2-2:[Spring Boot与Dubbo中管理服务依赖]

Spring Cloud构建微服务架构

由于Spring Cloud偏宏观架构,Spring Boot偏微观细节,内容上越来越多,为了两部分内容不互相干扰,所以迁移Spring Cloud内容到:SpringCloud-Learning项目,该项目将不再更新Spring Cloud内容,关注Spring Cloud内容的请移步至SpringCloud-Learning项目

  • chapter9-1-1:Spring Cloud构建微服务架构(一)服务注册与发现
  • chapter9-1-2:Spring Cloud构建微服务架构(二)服务消费者
  • chapter9-1-3:Spring Cloud构建微服务架构(三)断路器
  • chapter9-1-4:Spring Cloud构建微服务架构(四)分布式配置中心
  • chapter9-1-5:Spring Cloud构建微服务架构(五)服务网关
  • chapter9-1-6:[Spring Cloud构建微服务架构(六)集群监控]

教程整理地址(时间不足,暂缓更新)

http://blog.didispace.com/book/springboot/

原创粉丝点击