Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdeleuze/spring-kotlin-deepdive
A journey from Java to Kotlin with Spring
https://github.com/sdeleuze/spring-kotlin-deepdive
kotlin spring spring-boot
Last synced: 11 days ago
JSON representation
A journey from Java to Kotlin with Spring
- Host: GitHub
- URL: https://github.com/sdeleuze/spring-kotlin-deepdive
- Owner: sdeleuze
- Created: 2017-10-23T12:54:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T10:17:06.000Z (over 6 years ago)
- Last Synced: 2024-10-11T16:11:25.955Z (27 days ago)
- Topics: kotlin, spring, spring-boot
- Language: Java
- Homepage:
- Size: 416 KB
- Stars: 78
- Watchers: 7
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Kotlin deepdive
This project is designed to show step by step how to migrate from Java to Kotlin with
Spring Boot step by step:
* [Step 0](https://github.com/sdeleuze/spring-kotlin-deepdive/): Initial Java project
* [Step 1](https://github.com/sdeleuze/spring-kotlin-deepdive/tree/step1): Java to Kotlin
* [Step 2](https://github.com/sdeleuze/spring-kotlin-deepdive/tree/step2): Spring Boot 2
* [Step 3](https://github.com/sdeleuze/spring-kotlin-deepdive/tree/step3): Spring WebFlux
* [Step 4](https://github.com/sdeleuze/spring-kotlin-deepdive/tree/step4): Kotlin routing DSL
See [Spring Kotlin support documentation](https://docs.spring.io/spring/docs/current/spring-framework-reference/languages.html#kotlin) for more details.## [Step 0]((https://github.com/sdeleuze/spring-kotlin-deepdive)): The initial Java project
* Simple blog with JSON HTTP API
* Integration tests can be run via `./gradlew test` (or in the IDE)
* Run the project via `./gradlew bootRun` (or in the IDE) and go to `http://localhost:8080/` with your browser
* Present the Java application software design
* Reminders:
* No need for annotating constructor when single constructor for autowiring it (as of Spring 4.3), show 2 syntaxes
* `@RequestMapping` aliases: `@GetMapping`, `@PostMapping`, etc.
* Reload via CTRL + F9 in IDEA (CMD + SHIFT + F9 on Mac)**[Go to step 1: Java to Kotlin](https://github.com/sdeleuze/spring-kotlin-deepdive/tree/step1)**