본문으로 바로가기

Kotlin으로 개발하는 Spring Boot Web MVC #1

목차

    실습 환경

    • IntelliJ
    • Kotlin
    • Gradle
    • JDK 11
    • Spring Boot 2.6.2

    실습 코드

    https://github.com/0n1dev/kotlin-spring-practice

     

    GitHub - 0n1dev/kotlin-spring-practice: 인프런 강의

    인프런 강의. Contribute to 0n1dev/kotlin-spring-practice development by creating an account on GitHub.

    github.com

    GET

    • 단순 GET Mapping
    • PathVariable
    • QueryParam
      • 객체로 받는 방법

    POST

    • 단순 POST Mapping
    • RequestBody
    • JsonNaming 컨벤션

    PUT

    • 단순 PUT Mapping
    • RequestBody

    DELETE

    • PathVariable
    • QueryParam

    ResponseEntity

    • 상황별 HttpStatus 코드 반환

     

    -> 모든 코드는 실습 코드 깃헙에 업로드 되어있습니다.