spring-framework/framework-docs/modules/ROOT/pages/languages/kotlin/getting-started.adoc

32 lines
935 B
Plaintext
Raw Normal View History

2023-04-19 23:26:16 +08:00
[[kotlin-getting-started]]
= Getting Started
The easiest way to learn how to build a Spring application with Kotlin is to follow
{spring-site-guides}/tutorials/spring-boot-kotlin/[the dedicated tutorial].
2023-04-19 23:26:16 +08:00
[[start-spring-io]]
== `start.spring.io`
The easiest way to start a new Spring Framework project in Kotlin is to create a new Spring
Boot project on https://start.spring.io/#!language=kotlin&type=gradle-project-kotlin[start.spring.io].
2023-04-19 23:26:16 +08:00
[[choosing-the-web-flavor]]
== Choosing the Web Flavor
Spring Framework comes with two different web stacks: xref:web/webmvc.adoc#mvc[Spring MVC] and
2023-04-19 23:26:17 +08:00
xref:testing/unit.adoc#mock-objects-web-reactive[Spring WebFlux].
2023-04-19 23:26:16 +08:00
Spring WebFlux is recommended if you want to create applications that will deal with latency,
long-lived connections or streaming scenarios.
2023-04-19 23:26:16 +08:00
For other use cases, especially if you are using blocking technologies such as JPA, Spring
MVC is the recommended choice.
2023-04-19 23:26:16 +08:00