https://github.com/litsynp/spring-boot-kotlin-lec
[Inflearn] Kotlin으로 개발하는 Spring Boot Web MVC
https://github.com/litsynp/spring-boot-kotlin-lec
gradle junit kotlin spring-boot spring-validation
Last synced: 2 months ago
JSON representation
[Inflearn] Kotlin으로 개발하는 Spring Boot Web MVC
- Host: GitHub
- URL: https://github.com/litsynp/spring-boot-kotlin-lec
- Owner: litsynp
- Created: 2022-08-06T04:31:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-07T08:24:59.000Z (almost 4 years ago)
- Last Synced: 2025-05-17T07:06:52.817Z (about 1 year ago)
- Topics: gradle, junit, kotlin, spring-boot, spring-validation
- Language: Kotlin
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# \[Inflearn\] Kotlin으로 개발하는 Spring Boot Web MVC
\[Inflearn\] Kotlin으로 개발하는 Spring Boot Web MVC 강의 내용에 따른 예제를 진행한다.
## Versions
- Spring Boot 2.7.2
- JDK 8
- Kotlin 1.6.21
- Gradle 7.5
## Contents
Kotlin을 이용해 Spring Boot로 간단한 API를 구현해본다.
- GET, POST, PUT, DELETE mappings
- [`com.litsynp.demo.controller`](https://github.com/litsynp/spring-boot-kotlin-lec/tree/main/src/main/kotlin/com/litsynp/demo/controller)
- Bean validations with `spring-boot-starter-validation`
- [`com.litsynp.demo.model.http.UserRequest`](https://github.com/litsynp/spring-boot-kotlin-lec/blob/main/src/main/kotlin/com/litsynp/demo/model/http/UserRequest.kt)
- Custom LocalDateTime validation annotator for DTO
- [`com.litsynp.demo.annotation.StringFormatDateTime`](https://github.com/litsynp/spring-boot-kotlin-lec/blob/main/src/main/kotlin/com/litsynp/demo/annotation/StringFormatDateTime.kt)
- [`com.litsynp.demo.validator.StringFormatDateTimeValidator`](https://github.com/litsynp/spring-boot-kotlin-lec/blob/main/src/main/kotlin/com/litsynp/demo/validator/StringFormatDateTimeValidator.kt)
- Global and class-level exception handler using `@RestControllerAdvice` with custom error response DTO
- [`com.litsynp.demo.advice.GlobalControllerAdvice`](https://github.com/litsynp/spring-boot-kotlin-lec/blob/main/src/main/kotlin/com/litsynp/demo/advice/GlobalControllerAdvice.kt)
- [`com.litsynp.demo.controller.exception.ExceptionApiController`](https://github.com/litsynp/spring-boot-kotlin-lec/blob/main/src/main/kotlin/com/litsynp/demo/controller/exception/ExceptionApiController.kt)
- Unit tests with MockMvc
- [`com.litsynp.demo.controller.exception.ExceptionApiControllerTest`](https://github.com/litsynp/spring-boot-kotlin-lec/blob/main/src/test/kotlin/com/litsynp/demo/controller/exception/ExceptionApiControllerTest.kt)
## REF
[Inflearn: Kotlin으로 개발하는 Spring Boot Web MVC](https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8-%EC%BD%94%ED%8B%80%EB%A6%B0)