Skip to content

Commit 22ba870

Browse files
author
fakhrulasa
committedDec 12, 2021
- jdk update
1 parent 0d36b70 commit 22ba870

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
 

‎build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
tasks.withType<KotlinCompile> {
2727
kotlinOptions {
2828
freeCompilerArgs = listOf("-Xjsr305=strict")
29-
jvmTarget = "11"
29+
jvmTarget = "17"
3030
}
3131
}
3232

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
package com.fakhrulasa.springrest.controller
22

3+
import org.springframework.web.bind.annotation.GetMapping
4+
import org.springframework.web.bind.annotation.RequestMapping
5+
import org.springframework.web.bind.annotation.RestController
6+
7+
@RestController
8+
@RequestMapping("api/hello")
39
class NoteController {
10+
@GetMapping
11+
fun helloWorld():String{
12+
return "Hello World"
13+
}
414
}

‎src/main/resources/static/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>SSSS</h1>

0 commit comments

Comments
 (0)
Please sign in to comment.