Software Development

Using Spring @Autowired in Kotlin

[wp_ad_camp_1]

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

[wp_ad_camp_2]

Controller Codes

[wp_ad_camp_3]

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

You Might Also Like