We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d36b70 commit 22ba870Copy full SHA for 22ba870
build.gradle.kts
@@ -26,7 +26,7 @@ dependencies {
26
tasks.withType<KotlinCompile> {
27
kotlinOptions {
28
freeCompilerArgs = listOf("-Xjsr305=strict")
29
- jvmTarget = "11"
+ jvmTarget = "17"
30
}
31
32
src/main/kotlin/com/fakhrulasa/springrest/controller/NoteController.kt
@@ -1,4 +1,14 @@
1
package com.fakhrulasa.springrest.controller
2
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")
9
class NoteController {
10
+ @GetMapping
11
+ fun helloWorld():String{
12
+ return "Hello World"
13
+ }
14
src/main/resources/static/index.html
@@ -0,0 +1 @@
+<h1>SSSS</h1>
0 commit comments