GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-kotlin
/
sample-kotlin-spring+mybatis
Browse code
Remove unused import statements.
master
1 parent
d7d467d
commit
c0e2f4c65db0ace08f780493369df228f424b824
yhornisse
authored
on 17 Mar 2020
Patch
Showing
1 changed file
src/main/kotlin/com/example/sample/controller/Hello.kt
Ignore Space
Show notes
View
src/main/kotlin/com/example/sample/controller/Hello.kt
package com.example.sample.controller import com.example.sample.entity.BookDto import com.example.sample.service.SampleService import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.ResponseBody import org.springframework.web.bind.annotation.RestController @RestController class Hello (private val sampleService: SampleService){ @GetMapping("/hello") fun sample(): String = "Hello" @GetMapping("/test") @ResponseBody fun hoge() : BookDto = sampleService.execute() }
package com.example.sample.controller import com.example.sample.entity.BookDto import com.example.sample.service.SampleService import lombok.RequiredArgsConstructor import org.springframework.transaction.annotation.Transactional import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.ResponseBody import org.springframework.web.bind.annotation.RestController @RestController class Hello (private val sampleService: SampleService){ @GetMapping("/hello") fun sample(): String = "Hello" @GetMapping("/test") @ResponseBody fun hoge() : BookDto = sampleService.execute() }
Show line notes below