万本电子书0元读

万本电子书0元读

顶部广告

Building Applications with Spring 5 and Kotlin电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Miloš Vasić

出  版  社:Packt Publishing

出版时间:2018-05-18

字       数:23.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn to build a full-fledged application in Spring and Kotlin taking a reactive, microservice-based approach for scalability and robustness in the cloud About This Book ? Build a full-fledged application in Spring and Kotlin ? Architect your application to take a microservice-based approach in the cloud ? Integrate your application with a variety of Spring components Who This Book Is For Developers comfortable using Spring who have basic knowledge of Kotlin and want to take their development skills to the next level and build enterprise-grade applications will benefit from this book. What You Will Learn ? Explore Spring 5 concepts with Kotlin ? Learn both dependency injections and complex configurations ? Utilize Spring Data, Spring Cloud, and Spring Security in your applications ? Create efficient reactive systems with Project Reactor ? Write unit tests for your Spring/Kotlin applications ? Deploy applications on cloud platforms like AWS In Detail Kotlin is being used widely by developers because of its light weight, built-in null safety, and functional and reactive programming aspects. Kotlin shares the same pragmatic, innovative and opinionated mindset as Spring, so they work well together. Spring when combined with Kotlin helps you to reach a new level of productivity. This combination has helped developers to create Functional Applications using both the tools together. This book will teach you how to take advantage of these developments and build robust, scalable and reactive applications with ease. In this book, you will begin with an introduction to Spring and its setup with Kotlin. You will then dive into assessing the design considerations of your application. Then you will learn to use Spring (with Spring Boot) along with Kotlin to build a robust backend in a microservice architecture with a REST based collaboration, and leverage Project Reactor in your application. You’ll then learn how to integrate Spring Data and Spring Cloud to manage configurations for database interaction and cloud deployment. You’ll also learn to use Spring Security to beef up security of your application before testing it with the JUnit framework and then deploying it on a cloud platform like AWS. Style and approach Everything you learn will be demonstrated on real-world Spring project. In each chapter we will cover some of Spring features and apply it on our project. We will guide you from the project initialization till the project deployment.
目录展开

Title Page

Copyright and Credits

Building Applications with Spring 5 and Kotlin

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Starting Up

What is your mission?

Separating code into independent entities

Describing entities

Planning your development

Preparing the working environment

Installing Git

Microsoft Windows

macOS

Linux

Debian and Ubuntu

Fedora

Building Git from the source code

Debian and Ubuntu

Fedora

Installing JDK

Microsoft Windows

Linux

macOS

Installing the IDE

Microsoft Windows

Linux

macOS

Starting IntelliJ for the first time

Installing Spring 5

Maven installation

Gradle installation

Installing Postman

Microsoft Windows installation

Linux installation

macOS installation

Setting up a Git repository

Summary

Starting with Spring

What is Spring?

What features does it offer?

Dependency injection

Inversion of Control (IoC)

Aspect Oriented Programming (AOP)

Container

MVC framework

Model

View

Controller

Transaction management

Misc

How well is Kotlin supported?

Creating Spring project

What is Spring Initializr?

Generating the project

Creating Spring project with IntelliJ

Summary

Building Your First Spring RESTful Service with Kotlin

Defining dependencies for our project

Our first controller

What else is available?

Adding a data class

Drafting other API calls

Running the application

Accessing Actuator endpoints

Adding an @Service component

Summary

Working with Spring Data JPA and MySQL

Introducing Spring Data JPA

What does Spring Data provide?

Which Spring Data modules do we need?

About Spring Data JPA

Installing MySQL

Installing MySQL Community Server on macOS

Installing MySQL Community Server on Windows

Installing MySQL Community Server on Linux

Using a software package manager

Using TAR

Creating a schema

Extending dependencies

CRUD operations

Insert

Update

Select

Delete

More regarding updates

Introducing DTOs

Creating database queries

Named queries

Summary

Securing Applications with Spring Security

Introducing Spring Security

Defining user roles

Defining classes for each role

Defining DTOs for the user

Securing your REST API with basic authentication

What else can Spring Security do?

Summary

Spring Cloud

Microservice architecture versus SOA

Understanding microservice architectures

Microservices with Spring Cloud

Spring Cloud in practice

Configuration server

Discovery

Gateway

Updating the API application

Securing Spring Cloud services

Summary

Using Project Reactor

Why use Project Reactor?

What is Project Reactor?

Using Project Reactor

Summary

Development Practices

Challenging development practices

Reviewing dependency injection

Making your classes too open

Mutability

Multithreading

Not validating data

Tests coverage

XML configurations

Good ways to develop your code

Don't inject too much

Use a closed-visibility approach

Solving the multithreading issue

Spring data validation

Summary

Testing

Why is testing a crucial part of development?

So, what is testing?

Common test practices and approaches

Preparing our project

Writing our first test with Kotlin

Running the test in InteliJ IDEA

Testing Spring REST applications

Running test suites

Summary

Project Deployment

What will be deployed?

Deployment options

Deploying the Tomcat application server

Deploying to the Java EE application server

Deploying to the Cloud (AWS)

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部