Add sample func

This commit is contained in:
Sambo Chea 2021-01-26 13:28:23 +07:00
parent 97d3934905
commit 981f074049
3 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.example.demo
import com.example.lib.MyLib
import com.example.lib.MyUtils
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@ -9,6 +10,8 @@ import org.springframework.boot.runApplication
class DemoApplication : CommandLineRunner {
override fun run(vararg args: String?) {
MyLib.doOnMe()
println("Hello JJKK: ${MyUtils.helloWorld()}")
}
}

View File

@ -1,4 +1,5 @@
plugins {
id("java-library")
id("io.spring.dependency-management")
kotlin("jvm")
kotlin("plugin.spring")

View File

@ -0,0 +1,7 @@
package com.example.lib;
public final class MyUtils {
public static String helloWorld() {
return "Hello World";
}
}