~/talk

Using Spring with Scala

Talkat Spring I/O 2016 · 2016-05-19..05-20· [spring, scala]
links:none on file
slides:none on file

Translates several spring.io guides from Java to Scala and runs them with Gradle with scala plugin, keeping Spring Boot and Gradle as the build tooling. Implements MVC, REST client, Spring Data REST and JDBC examples; annotations work largely unchanged but request mapping needs an array for multiple paths and Scala beans require bean property annotation for getters/setters. Scala functions are not usable as Java 8 lambdas for Spring callbacks (use anonymous classes), Spring Data needs java.lang.Long for IDs, and JavaConverters handle collection interop; all examples run and code is on GitHub.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Overview
  3. 1:29Target audience
  4. 2:21Why Scala?
  5. 5:14Why Scala & Spring
  6. 6:382. Examples
  7. 8:02First example: serving web content with Spring MVC
  8. 8:30Make Gradle work with Scala
  9. 9:39Application class
  10. 11:05Template
  11. 11:17Controller
  12. 12:53Example: consuming REST services
  13. 13:08Beans in Scala
  14. 14:28Asynchronous version using Lambdas
  15. 15:10Java 8 Lambdas vs. Scala function literals
  16. 16:03We need ugly anonymous classes
  17. 17:15Person resource in Scala
  18. 17:30Repository
  19. 18:55Final example: JDBC
  20. 19:44JDBC: Java Batch Update
  21. 20:59JDBC Scala names collection
  22. 21:54JDBC Scala batchUpdate
  23. 22:55Convert from Scala
  24. 23:43JDBC Scala print query
  25. 24:03Convert from Java
  26. 24:30Translation steps . Use Scala mutable collection when calling Java
  27. 24:503. Evaluation
  28. 25:40Simple translation steps
  29. 26:41Scala SDK is getting better dealing with Java
  30. 27:50Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.