问题描述
最近,我遇到了许多用于用Java创建Web应用程序的框架,例如:Play!,Wicket,Grails,Lift和Tapestry.框架到底是什么?使用框架有什么好处?另外,我想尝试一下.由于我的Web开发知识非常有限,我想要一个轻量级且易于使用和入门的框架.您会推荐哪一个?
Recently I've come across many different frameworks for creating web apps in Java such as: Play!, Wicket, Grails, Lift, and Tapestry. What exactly is a framework and what are the benefits of using one? Additionally, I would like to try one out. I want a framework that is lightweight and easy to use and get started with, since my web development knowledge is very limited. Which one would you recommend?
我敢肯定,这个问题已经被问过十遍了,但是必须搜索过去的问题以找到所需的答案是很繁琐的.
Also I'm sure this question has been asked a dozen times, but it's quite tedious to have to search through past questions to find the answer your looking for.
推荐答案
我相信Lift适用于Scala.
I believe Lift is for Scala.
Tapestry是仅UI的框架.
Tapestry is a UI-only framework.
Grails是Groovy,Spring和Hibernate的结合,形成了类似于Ruby On Rails的环境,可以快速创建CRUD Web应用程序.
Grails is Groovy, Spring, and Hibernate combined into a Ruby On Rails-like environment for rapidly creating CRUD web apps.
播放! Wicket是框架的绰号.
Play! and Wicket deserve the moniker of framework.
你没有提到春天;你应该看看它.那就是我的建议.它结合了依赖性注入,面向方面的编程以及用于持久性,Web和门户MVC,远程处理,声明性事务,消息驱动的POJO等的出色模块.它具有很大的思想份额和吸引力.它是由VMWare购买的,因此将会存在一段时间.
You don't mention Spring; you should look at it. That's what I would recommend. It's a combination of dependency injection, aspect oriented programming, and great modules for persistence, web and portal MVC, remoting, declarative transactions, message driven POJOs, and lots more. It has a great deal of mindshare and traction. It's been purchased by VMWare, so it's going to be around for a while.
您不仅需要框架来进行Web开发.在所有情况下,没有HTML,CSS和JavaScript都无法进行Web开发.
You'll need more than a framework to do web development. In all cases, you can't do web development without HTML, CSS, and JavaScript.
这篇关于Java框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!