在 Scala 上开发 Web 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/719358/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Web application development on Scala
提问by Anirudh
I have just learnt Scala and I want to try some web development with it. On Google, one of the frameworks I came across (the only one?) was Lift. What is the experience using it?
我刚刚学习了 Scala,我想尝试用它进行一些 Web 开发。在 Google 上,我遇到的框架之一(唯一的?)是Lift。使用它是什么体验?
What can be recommended for web application development with Scala on any other frameworks?
在任何其他框架上使用 Scala 进行 Web 应用程序开发有什么推荐?
采纳答案by Saem
AFAIK, Lift is the most mature game in town if you want to stick with a Scala based solution, also see http://code.google.com/p/slinky2/. A word to the wise, I have yet to use slinky at all, except for browsing the source, it's very simple in design adhering strongly to request => response model.
AFAIK,如果您想坚持使用基于 Scala 的解决方案,Lift 是镇上最成熟的游戏,另请参阅http://code.google.com/p/slinky2/。对聪明人来说,我还没有使用过 slinky,除了浏览源之外,它的设计非常简单,强烈坚持请求 => 响应模型。
Mind you, this is Scala, and so you can use all of Java's existing frameworks. In particular, I'd suggest you look at wicket: http://technically.us/code/x/the-escape-hatchthat describes how to combine the two.
请注意,这是 Scala,因此您可以使用 Java 的所有现有框架。特别是,我建议您查看 wicket:http: //technically.us/code/x/the-escape-hatch,它描述了如何将两者结合起来。
回答by manish_s
I personally recommend you using Play Framework.
我个人推荐你使用Play Framework。
回答by jemeshsu
The most used full stack Scala web frameworks are Lift and Play! Take a look at both before you commit. One major difference between the two is Lift is stateful while Play! is stateless, more akin to Rails/Django.
最常用的全栈 Scala Web 框架是 Lift and Play!在你提交之前看看两者。两者之间的一个主要区别是 Lift 在 Play 时是有状态的!是无状态的,更类似于 Rails/Django。
回答by Ant Kutschera
Jsf2 works well. I guess struts would too. They aren't Scala per se, but you can use only Scala and the appropriate EL and they work fine. And those two are much more mature than any of the new frameworks. Communities are bigger, documentation better, etc.
Jsf2 运行良好。我猜 struts 也会。它们本身不是 Scala,但您只能使用 Scala 和适当的 EL,它们可以正常工作。这两个框架比任何新框架都成熟得多。社区更大,文档更好,等等。

