售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜