Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Building Applications with Spring 5 and Kotlin
Building Applications with Spring 5 and Kotlin

Building Applications with Spring 5 and Kotlin: Build scalable and reactive applications with Spring combined with the productivity of Kotlin

eBook
€8.99 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Building Applications with Spring 5 and Kotlin

Starting with Spring

In the previous chapter, we set up our development environment. We are now ready to create our first Spring code written in Kotlin. To do that, we will get familiar with Spring background and explain what exactly Spring can do. When we introduce you to Spring background, we will kick off the project! Get ready!

In this chapter, we will learn the following:

  • What is Spring?
  • Spring's most important features
  • Kotlin support for Spring
  • Generating projects
  • Creating Spring project in IntelliJ

What is Spring?

The Spring Framework is a framework developed by the Pivotal company. The framework offers to end the user's programming and configuration model for modern enterprise applications. Spring Framework is made for developers to be able to focus on application-level business logic. Today almost all modern enterprise applications are developed by using Spring Framework. That makes it one of the most widely used and popular development frameworks available.

What features does it offer?

Spring Framework comes with plenty of modern features every developer needs. Here, we will highlight the most important ones and say a few words about them.

...

Creating Spring project

The time has come to create our first Spring code and run it. We will, of course, use Kotlin as our primary development language. For project initialization, we will use Spring Initializr.

What is Spring Initializr?

In one sentence, Spring Initializr is a web-based quick start generator for Spring Framework projects. You can access it online at the following URL:

https://start.spring.io/

And from it's GitHub repository, https://github.com/spring-io/initializr, since it's open an source project.

Spring Initializr provides API to generate quick start Spring Framework projects. You can use the default instance hosted on the spring.io domain or clone the GitHub repository and host your own instance...

Creating Spring project with IntelliJ

To close this chapter, we will demonstrate how to initialize the project from IntelliJ Idea. We will get pretty much the same result as with Initializr. Start IntelliJ and select the Create new project option. A New Project dialog box appears, as shown in the following screenshot:

Set your project options, and then select the Spring Framework components as shown in the following screenshot:

Also, select Kotlin/JVM as the language we will use, as shown in the following screenshot:

Follow the wizard until the project is ready. You will be asked to enable annotations, as shown in the following screenshot. Please do so!

In the following screenshot, you have probably noticed that there is no Spring 5 available as an option, so we will stick to Initializr project initialization since it supports everything we want:

...

Summary

In this chapter, we introduced you to Spring Framework and its features. We kicked off our first project and successfully performed building and execution. In the next chapter, we will continue our journey and do some more concrete work. We will create our first RESTful service with the controller, data class, and service components.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • 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

Description

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.

Who is this book 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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 18, 2018
Length: 310 pages
Edition : 1st
Language : English
ISBN-13 : 9781788473156
Vendor :
Pivotal
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 18, 2018
Length: 310 pages
Edition : 1st
Language : English
ISBN-13 : 9781788473156
Vendor :
Pivotal
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 110.97
Hands-On Design Patterns with Kotlin
€36.99
Building Applications with Spring 5 and Kotlin
€36.99
Hands-On Microservices with  Kotlin
€36.99
Total 110.97 Stars icon
Banner background image

Table of Contents

11 Chapters
Starting Up Chevron down icon Chevron up icon
Starting with Spring Chevron down icon Chevron up icon
Building Your First Spring RESTful Service with Kotlin Chevron down icon Chevron up icon
Working with Spring Data JPA and MySQL Chevron down icon Chevron up icon
Securing Applications with Spring Security Chevron down icon Chevron up icon
Spring Cloud Chevron down icon Chevron up icon
Using Project Reactor Chevron down icon Chevron up icon
Development Practices Chevron down icon Chevron up icon
Testing Chevron down icon Chevron up icon
Project Deployment Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(1 Ratings)
5 star 0%
4 star 0%
3 star 100%
2 star 0%
1 star 0%
Nevyn Jul 12, 2018
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
If you are an absolute beginner who requires screenshots, then this book is for you. The only con for you then is that the writer is very brief in explaining things that for a beginner requires a deeper description.As for me (not a beginner). I paged through 15% of the book to get to the end of installing the tools you need. After that the next chapter described what Spring Framework is. MVC was explained on 3 pages, one for each component and even then only a small paragraph each. In all the chapter is like a bullet list of features which would be far too cryptic for a beginner. 20% of the book gets you nowhere.At that point I requested a refund.Why?The book seems like something rushed to be a first to cover the combined topics. The software covered are milestone and release candidates, except for Kotlin which is a major version behind. Why not wait for things to be released and then have an up to date and comprehensive book?I also get the feeling that the author was targeting the topic not out of in-depth knowledge of the components, but more due to it being a hot topic and having some exposure to the components.That's just my opinion.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.