类似推荐
编辑推荐
Kotlin在Spring Boot微服务开发实践及应用,适合编程基础的读者阅读。
内容简介
本书介绍了Kotlin 在Spring Boot微服务开发中的实践,并使用Kotlin 作为开发语言,介绍了函数式编程思想、Kotlin 的语法、Kotlin 在常用中间件中的应用,以及其在微服务注册中心、微服务配置中心、微服务网关、Spring Cloud Alibaba、服务监控和服务链路监控方面的应用。本书给出了详细的实例代码和一个完整的博客示例,可以帮助读者使用Kotlin 开发基于 Spring Boot 微服务的程序。阅读本书需要具有一定的编程基础,但入门门槛不高。因此,本书适合大学生、工程师等对使用Kotlin开发服务端程序感兴趣的读者阅读。
章节目录
封面
版权信息
内容简介
推荐序
序言
第1章 搭建Kotlin开发环境
1.1 Kotlin简介
1.2 在Windows环境中搭建Kotlin开发环境
1.3 在Ubuntu环境中搭建Kotlin开发环境
1.4 在macOS环境中搭建Kotlin开发环境
1.5 第一个Kotlin程序
1.6 小结
第2章 函数式编程介绍
2.1 初识函数式编程
2.2 函数式编程的特点
2.3 Scala、Kotlin、Java的对比
2.4 小结
第3章 Kotlin的语法
3.1 基础语法
3.1.1 基本数据类型
3.1.2 包名和引用
3.1.3 流程控制
3.1.4 返回和跳转
3.2 类
3.2.1 类、属性、接口
3.2.2 特殊类
3.2.3 泛型
3.2.4 委托
3.3 函数和Lambda表达式
3.3.1 函数
3.3.2 Lambda表达式
3.4 集合
3.4.1 集合概述
3.4.2 集合操作
3.4.3 List、Set、Map相关操作
3.5 协程
3.5.1 协程基础
3.5.2 协程进阶
3.6 小结
第4章 Kotlin在常用中间件中的应用
4.1 Kotlin集成Spring Boot
4.1.1 Spring Boot介绍
4.1.2 用Kotlin开发一个Spring Boot项目
4.2 Kotlin集成Redis
4.2.1 Redis介绍
4.2.2 使用Kotlin操作Redis
4.3 Kotlin集成JPA、QueryDSL
4.3.1 JPA、QueryDSL介绍
4.3.2 使用Kotlin操作JPA、QueryDSL
4.4 Kotlin集成MongoDB
4.4.1 MongoDB介绍
4.4.2 使用Kotlin操作MongoDB
4.5 Kotlin集成Spring Security
4.5.1 Spring Security介绍
4.5.2 使用Kotlin操作Spring Security
4.6 Kotlin集成RocketMQ
4.6.1 RocketMQ介绍
4.6.2 使用Kotlin操作RocketMQ
4.7 Kotlin集成Elasticsearch
4.7.1 Elasticsearch介绍
4.7.2 使用Kotlin操作Elasticsearch
4.8 Kotlin集成Swagger
4.8.1 Swagger介绍
4.8.2 使用Kotlin操作Swagger
4.9 小结
第5章 Kotlin应用于微服务注册中心
5.1 Eureka
5.1.1 Eureka介绍
5.1.2 Kotlin集成Eureka服务注册
5.1.3 一个Eureka服务提供方
5.1.4 Kotlin集成OpenFeign服务调用
5.1.5 Kotlin集成Ribbon服务调用
5.2 Consul
5.2.1 Consul介绍
5.2.2 Kotlin集成Consul服务注册
5.2.3 Kotlin集成OpenFeign和Ribbon服务调用
5.3 Zookeeper
5.3.1 Zookeeper介绍
5.3.2 Kotlin集成Zookeeper服务注册
5.3.3 Kotlin集成OpenFeign和Ribbon服务调用
5.4 Nacos
5.4.1 Nacos介绍
5.4.2 Kotlin集成Nacos服务注册
5.4.3 Kotlin集成OpenFeign和Ribbon服务调用
5.5 小结
第6章 Kotlin应用于微服务配置中心
6.1 Spring Cloud Config
6.1.1 Spring Cloud Config介绍
6.1.2 Kotlin集成Spring Cloud Config
6.2 Apollo配置中心
6.2.1 Apollo介绍
6.2.2 Kotlin集成Apollo
6.3 Nacos配置中心
6.4 Consul配置中心
6.5 小结
第7章 Kotlin应用于微服务网关
7.1 Kotlin集成Zuul
7.1.1 Zuul介绍
7.1.2 Kotlin集成Zuul
7.2 Kotlin集成Spring Cloud Gateway
7.2.1 Spring Cloud Gateway介绍
7.2.2 Kotlin集成Spring Cloud Gateway
7.3 小结
第8章 Kotlin应用于Spring Cloud Alibaba
8.1 服务限流降级
8.1.1 Sentinel介绍
8.1.2 Kotlin集成Sentinel
8.2 消息驱动
8.2.1 消息驱动介绍
8.2.2 Kotlin集成RocketMQ实现消息驱动
8.3 阿里对象云存储
8.3.1 阿里对象云存储介绍
8.3.2 Kotlin集成阿里对象云存储
8.4 分布式任务调度
8.4.1 SchedulerX介绍
8.4.2 Kotlin集成SchedulerX
8.5 分布式事务
8.5.1 分布式事务介绍
8.5.2 Kotlin集成Seata
8.6 Spring Cloud Dubbo
8.6.1 Dubbo介绍
8.6.2 Kotlin集成Spring Cloud Dubbo
8.7 小结
第9章 Kotlin集成服务监控和服务链路监控
9.1 Prometheus、Grafana介绍
9.2 Kotlin集成Prometheus、Grafana
9.3 Kotlin集成Zipkin
9.4 Kotlin集成SkyWalking
9.5 小结
第10章 基于Kotlin和Spring Boot搭建博客
10.1 初始化Maven工程
10.2 系统架构
10.3 定义实体
10.4 数据库设计
10.5 Repository层的设计
10.6 Service层的设计
10.7 Controller层的设计
10.8 部署到腾讯云
10.9 小结
封底
基于Kotlin的SpringBoot微服务实战是2020年由电子工业出版社出版,作者袁康。
得书感谢您对《基于Kotlin的SpringBoot微服务实战》关注和支持,如本书内容有不良信息或侵权等情形的,请联系本网站。