Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Spring with Scala

Spring I/O via YouTube

Overview

Explore a conference talk from Spring I/O 2016 that delves into using Spring with Scala. Learn how to introduce Scala into an existing Java/Spring environment and discover the benefits of combining these technologies. Gain insights into translating Spring guides from Java to Scala, covering topics such as serving web content with Spring MVC, consuming REST services, and working with JDBC. Understand the compatibility between Scala and Spring, and see how developers can leverage their Spring experience while adopting Scala. Follow along as the speaker demonstrates practical examples, discusses translation steps, and evaluates the integration of Scala with Spring. By the end of this 29-minute presentation, grasp how Scala can complement Spring development without sacrificing efficiency or abandoning existing expertise.

Syllabus

Intro
Overview
Target audience
Why Scala?
Why Scala & Spring
2. Examples
First example: serving web content with Spring MVC
Make Gradle work with Scala
Application class
Template
Controller
Example: consuming REST services
Beans in Scala
Asynchronous version using Lambdas
Java 8 Lambdas vs. Scala function literals
We need ugly anonymous classes
Person resource in Scala
Repository
Final example: JDBC
JDBC: Java Batch Update
JDBC Scala names collection
JDBC Scala batchUpdate
Convert from Scala
JDBC Scala print query
Convert from Java
Translation steps . Use Scala mutable collection when calling Java
3. Evaluation
Simple translation steps
Scala SDK is getting better dealing with Java
Conclusion

Taught by

Spring I/O

Reviews

Start your review of Using Spring with Scala

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.