入門

學習如何使用 Kotlin 構建 Spring 應用程式最簡單的方法是遵循 專門的教程

start.spring.io

在 Kotlin 中啟動新的 Spring Framework 專案最簡單的方法是在 start.spring.io 上建立一個新的 Spring Boot 專案。

選擇 Web 風格

Spring Framework 帶有兩種不同的 Web 棧:Spring MVCSpring WebFlux

如果您想建立處理延遲、長連線或流式傳輸場景的應用程式,建議使用 Spring WebFlux。

對於其他用例,特別是如果您使用 JPA 等阻塞技術,Spring MVC 是推薦的選擇。

© . This site is unofficial and not affiliated with VMware.