Build Spring Boot Apps with the Kotlin Programming Language
Offered By: LinkedIn Learning
Course Description
Overview
Learn how to build high-quality Spring Boot applications with the Kotlin programming language.
Syllabus
1. Introduction
- Introduction
- What is Kotlin?
- Installing IntelliJ
- Configuring IntelliJ
- Creating a new Kotlin project
- Variable declaration syntax
- Inferring variable types and println
- Using string templates
- Multiple line strings
- Using the Double type and determining class types
- The Int data type
- Other data types
- Casting in Java
- Casting in Kotlin
- Chapter review
- Creating variables that can contain a null value
- Methods that work with nullable parameters
- The null-safe and non-null asserted operators
- The Nothing object type
- The function syntax and the Unit object
- Creating and calling top-level functions
- Single expression functions
- Using named parameters and optional parameters
- Other aspects of functions in Kotlin
- Project structure and packages
- The class declaration and class-level attributes
- Instantiating a class and accessing class-level attributes
- Creating a simple constructor
- Secondary constructors
- Alternative class design
- Overriding getters and setters
- Functions within a class
- Static functions
- Data classes
- Explaining the challenge
- Solution walk-through
- The if keyword as an expression
- Using if to do a null-safe check
- The let function
- Object equality and the when expression
- The while loop
- Using for to loop through a collection
- Destructuring with a for loop
- Looping with a range
- Mutable collections with immutable variables
- Immutable lists
- Mutable lists
- Maps and sets
- Working with arrays
- Explaining the challenge
- Solution walk-through
- Exceptions are unchecked
- Throwing exceptions
- try as an expression
- use as an expression (try with resources)
- Using JUnit with Kotlin
- The Kotlin test assertions
- Testing for exceptions
- Creating and implementing interfaces
- Class inheritance
- Creating custom exceptions
- Extension functions
- Instantiating classes and providing values to non-nullable variables
- Using data classes
- Using immutable lists
- Exception handling
- Using static functions
- Importing a Kotlin JAR file into a Java project
- Creating a project with the Spring Initializr
- A hello world controller
- Auto-restarting an application
- Overview of the case study
- Creating views and backing beans
- Connecting views to controller functions
- Adding services
- Posting to a controller
- Dependency injection
- Revisiting backing beans
- Functional programming overview
- Methods that take function parameters—the Java way
- Methods that take function parameters—the Kotlin way
- Functional programming with lists
- filter and flatMap
- reduce and fold
- Working with maps
- Adding the Hibernate dependencies
- The challenge of creating entities
- Persisting data to a database
- Step 1: Explaining the challenge
- Solution walk-through
- Mappings between entities
- Upgrading the view
- Step 2: Explaining the challenge
- Solution walk-through
- Step 3: Explaining the challenge
- Solution walk-through
- The concept of reflection
- Inspecting properties and functions
- A practical use for reflection
- Thank you and goodbye
Taught by
Matt Greencroft
Related Courses
A Beginner's Guide to Java ProgrammingPackt via FutureLearn A Simple Picture Storing App with Java and Android Studio
Coursera Project Network via Coursera Confluent Certified Developer for Apache Kafka (CCDAK)
A Cloud Guru JBoss EAP Administration
A Cloud Guru Advanced Data Structures in Java
University of California, San Diego via Coursera