Using Spring with Scala
Offered By: Spring I/O via YouTube
Course Description
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
Related Courses
Software as a ServiceUniversity of California, Berkeley via Coursera Intro to Computer Science
University of Virginia via Udacity Web Development
Udacity Software Engineering for SaaS
University of California, Berkeley via Coursera CS50's Introduction to Computer Science
Harvard University via edX