This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Kotlin in Action: support in Spring 5?  RSS feed

 
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read that Spring 5 supports Kotlin. Can you share some light on that?

Is the support going to be such that we can develop a Spring application in Kotlin, just like the way we use Java?
 
author
Ranch Hand
Posts: 149
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kotlin is fully interoperable with Java. This means that you can develop any application in Kotlin that you can develop in Java. This requires no additional support from the frameworks that you're using.

The support for Kotlin in Spring 5 means that you can use a nice Kotlin DSL in some places in the API, and that you get full advantages of Kotlin's null safety when using the framework classes (because they have been annotated in a special way). You can find more information and code examples in the Spring blog: https://spring.io/blog/2017/01/04/introducing-kotlin-support-in-spring-framework-5-0
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, Dmitry. I will read through the link shared by you. I am working on an upcoming book on Spring 5 and would like to cover the Kotlin's support in Spring 5!
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!