Best Web applications framework for Java? [closed]

2020-01-27 02:34发布

Which is the best framework for Java? I'm looking for something similar to Symfony for php and Ruby-On-Rails for Ruby? I even don't know if anything such exists for Java or not.

18条回答
成全新的幸福
2楼-- · 2020-01-27 03:30

Struts is for suits.

查看更多
成全新的幸福
3楼-- · 2020-01-27 03:33

It depends on what you want to do, but the short answer is: boy, are there! Note, however, that answer does not indicate whether the myriad of options is good or bad. Java's server side community tends to be a lot more fragmented, and while there aren't that many alternatives to Rails used in actual practice for Ruby, each of the camps on the Java side seem to be fairly well manned. As Taylor Marshall mentioned, there's Struts, which is used most often in industry (as it's the oldest still-in-use OSS MVC container I know of. But no one seems to like Struts anymore. The Ex-Jakarta menu on the Apache Jakarta page shows a number of Web Application frameworks that they've incubated, including Tapestry, Turbine, and Velocity. There's also Wicket (a very decent comparison of Wicket and Tapestry is available here). Oh, and Java Server Faces. And SpringMVC. Tapestry and Wicket (in particular) seem to be gaining ground, while everyone seems to have a horror story about JSF. Your mileage will absolutely vary here, and eesh, looking up at the links in just this answer, maybe Groovy would be simpler.

查看更多
够拽才男人
4楼-- · 2020-01-27 03:34

Take a look at Spring. I think it will do anything Ruby-On-Rails can do (you can also add Hibernate for ORM).

查看更多
我只想做你的唯一
5楼-- · 2020-01-27 03:35

There are many great web frameworks for java, but if your looking for something that is similar to Rails, look at Grails. It uses Groovy, which is dynamic language, but uses the Java VM.

Check out their quick start to determine if it's what you want.

查看更多
Lonely孤独者°
6楼-- · 2020-01-27 03:35

I read about JBoss Seam and it seems nice too

查看更多
Luminary・发光体
7楼-- · 2020-01-27 03:37

I agree with the other folks who are suggesting grails- I'm using it on a couple of apps now, and it's the closest thing I've found to a java flavored ruby on rails. That said, why not use JRuby? My understanding is that they have Rails running on it now.

查看更多
登录 后发表回答