Add sample func
This commit is contained in:
parent
97d3934905
commit
981f074049
@ -1,6 +1,7 @@
|
|||||||
package com.example.demo
|
package com.example.demo
|
||||||
|
|
||||||
import com.example.lib.MyLib
|
import com.example.lib.MyLib
|
||||||
|
import com.example.lib.MyUtils
|
||||||
import org.springframework.boot.CommandLineRunner
|
import org.springframework.boot.CommandLineRunner
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||||
import org.springframework.boot.runApplication
|
import org.springframework.boot.runApplication
|
||||||
@ -9,6 +10,8 @@ import org.springframework.boot.runApplication
|
|||||||
class DemoApplication : CommandLineRunner {
|
class DemoApplication : CommandLineRunner {
|
||||||
override fun run(vararg args: String?) {
|
override fun run(vararg args: String?) {
|
||||||
MyLib.doOnMe()
|
MyLib.doOnMe()
|
||||||
|
|
||||||
|
println("Hello JJKK: ${MyUtils.helloWorld()}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
|
id("java-library")
|
||||||
id("io.spring.dependency-management")
|
id("io.spring.dependency-management")
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
kotlin("plugin.spring")
|
kotlin("plugin.spring")
|
||||||
|
7
lib/src/main/java/com/example/lib/MyUtils.java
Normal file
7
lib/src/main/java/com/example/lib/MyUtils.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package com.example.lib;
|
||||||
|
|
||||||
|
public final class MyUtils {
|
||||||
|
public static String helloWorld() {
|
||||||
|
return "Hello World";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user