Using Spring @Autowired in Kotlin

Last Updated on

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

Karl San Gabriel

Karl San Gabriel

Professional Software Developer