类似于 Ruby on Rails 范式的 Java Web 框架
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6147398/
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
Java Web Framework similar with Ruby on Rails paradigm
提问by Agung Prasetyo
in your opinion, what is java web framework that most close to or similar to the paradigm of the Ruby on Rails (like convention over configuration, DRY, noXML, etc), but without the need to learn scripting languages ??like Groovy. And of course have a great documentation and community.
在您看来,最接近或类似于 Ruby on Rails 范式(例如约定优于配置、DRY、noXML 等)但无需学习脚本语言(例如 Groovy)的 Java Web 框架是什么。当然还有很棒的文档和社区。
采纳答案by JCorcuera
You can take a look to Play Frameworkit follow MVC and RESTful architectures.
你可以看看Play Framework,它遵循 MVC 和 RESTful 架构。
回答by khmarbaise
回答by Oleg K
Maybe too late, but have looked at Spring Roo?
也许为时已晚,但看过 Spring Roo 吗?
回答by DanielC
This question is a bit old, but this information may still be useful for people looking for a good java framework: Try ninja framework (http://www.ninjaframework.org). I have tried various java web frameworks and this one was by far the easiest to setup and use. Just follow the tutorial on their page.
这个问题有点老了,但这些信息对于寻找好的 Java 框架的人来说可能仍然有用:尝试 ninja 框架 ( http://www.ninjaframework.org)。我尝试过各种 java web 框架,而这个框架是迄今为止最容易设置和使用的。只需按照他们页面上的教程进行操作即可。
Developing with it is very easy, ninja web projects are standard Maven projects so you can open them with any ide that supports Maven. For example, you can open the project with Netbeans, and have the development server running in a commandprompt/terminal window. Any time you save your changes the development server will pickup your changes and restart very quickly. Or you can use a standard text editor if you want.
使用它进行开发非常容易,ninja web 项目是标准的 Maven 项目,因此您可以使用任何支持 Maven 的 ide 打开它们。例如,您可以使用 Netbeans 打开项目,并在命令提示符/终端窗口中运行开发服务器。任何时候您保存更改时,开发服务器都会接收您的更改并很快重新启动。或者,您可以根据需要使用标准文本编辑器。
Very comfortable to develop with. You can also debug very easily from Netbeans (http://www.ninjaframework.org/documentation/debugging.html)
开发起来很舒服。您还可以从 Netbeans ( http://www.ninjaframework.org/documentation/debugging.html)轻松调试
Note: if you use an ide like netbeans, you dont actually run the project from netbeans, you just edit your changes on the ide and save. The development server picks up the changes automatically.
注意:如果你使用像 netbeans 这样的 ide,你实际上并没有从 netbeans 运行项目,你只是在 ide 上编辑你的更改并保存。开发服务器会自动获取更改。
回答by Ben
You can also take a look at Java on Rails
你也可以看看 Java on Rails
回答by thenengah
I think Stripesis what you are after.
我认为条纹是你所追求的。