[英]What are some good JVM-based web server libraries?
I currently have a Kotlin app that I'd like to expose with a REST API server.我目前有一个 Kotlin 应用程序,我想用 REST API 服务器公开它。 I'm finding really hard to decide for a web framework to build around it.
我发现很难决定围绕它构建一个 Web 框架。
My background is Node.JS with express and I'm trying to find something at least similar to it at the level of middleware and modularity.我的背景是 Node.JS 和 express,我试图在中间件和模块化级别找到至少与它相似的东西。 But since I just started learning Java recently the getting started part is the major entry-barrier.
但由于我最近才开始学习 Java,入门部分是主要的入门障碍。
What striked me as appropriate was Spark but I can't find a way to separate my routes between different files and have local-per-file middleware.什么让我觉得合适的是 Spark,但我找不到一种方法来分隔不同文件之间的路由并具有每个文件的本地中间件。
I considered Play but it seemed that it needed a very big level of setup for a new app, even more if it's an existing one.我考虑过 Play,但似乎它需要为新应用程序进行大量设置,如果它是现有应用程序则更是如此。
While my app ain't that big I plan on evolving it so I need something that can scale appropriately.虽然我的应用程序不是那么大,但我计划对其进行改进,因此我需要一些可以适当扩展的东西。 So I'm asking what options do I have?
所以我问我有哪些选择? I'm really looking forward on working with Spark if I can tackle those 2 issues previously mentioned, any help about them is appreciated.
如果我能解决前面提到的那两个问题,我真的很期待与 Spark 合作,感谢任何有关它们的帮助。
Try one of these:尝试以下方法之一:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.