Using Spring @Autowired in Kotlin

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

Requirements

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

Java and Enterprise Technologies Expert