Step 1
Modify build.gradle
- In Module Dir : apply plugin: ‘kotlin’ and add kotlin dependencies
1 | apply plugin: 'org.springframework.boot' |
- Project Dir : add kotlin classpath
1 | buildscript { |
Step 2
Code with kotlin
tip: if you use pure kotlin, you may code in kotlin dir replace java
Step 3
Done!
本文为作者原创 转载时请注明出处 谢谢
乱码三千 – 点滴积累 ,欢迎来到乱码三千技术博客站