Software Development

Using Spring @Autowired in Kotlin


This post shows an example of how to use @Autowired to inject @Service object in @Controller object Kotlin.


These are Software applications used for this post.

  • IntelliJ IDEA Ultimate 2016.3
    • The Community Edition may be enough but we have not tried it.
  • Kotlin Version 1.1
  • Windows 10 Enterprise

Service Codes


Controller Codes


Got comments, or suggestions? Please visit our Facebook page!

You Might Also Like