Building Applications with Spring 5 and Kotlin Build Scalable and Reactive Applications with Spring Combined with the Productivity of Kotlin
This book helps you get a deep understanding of Spring and how it can make your life easier. This collection of projects demonstrates the versatility of the language and enables you to build standalone applications. The book unveils the latest features of Kotlin and walks you through the building bl...
Gespeichert in:
| 1. Verfasser: | |
|---|---|
| Format: | E-Book |
| Sprache: | Englisch |
| Veröffentlicht: |
Birmingham
Packt Publishing, Limited
2018
|
| Ausgabe: | 1 |
| Schlagworte: | |
| ISBN: | 1788394801, 9781788394802 |
| Online-Zugang: | Volltext |
| Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Inhaltsangabe:
- Deploying to the Cloud (AWS) -- Summary -- Other Books You May Enjoy -- Index
- 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 -- Chapter 5: 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 -- Chapter 6: 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 -- Chapter 7: Using Project Reactor -- Why use Project Reactor? -- What is Project Reactor? -- Using Project Reactor -- Summary -- Chapter 8: 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 -- Chapter 9: 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 -- Chapter 10 : Project Deployment -- What will be deployed? -- Deployment options -- Deploying the Tomcat application server -- Deploying to the Java EE application server
- Cover -- Title Page -- Copyright and Credits -- Packt Upsell -- Contributors -- Table of Contents -- Preface -- Chapter 1: 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 -- Chapter 2: 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 -- Chapter 3: 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 -- Chapter 4: 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

