简体   繁体   English

适用于初学者的基于Java的Web应用程序框架

[英]Java based Framework for web applications for beginners

I have a new colleague who needs some education about developing web applications in java. 我有一个新同事需要一些关于在java中开发Web应用程序的教育。 He has basic java knowledge and is almost not experienced with web applications. 他具有基本的Java知识,几乎没有Web应用程序的经验。

Our standard toolstack is based on Wicket, JPA and Spring but I'm afraid of overcharging our new colleague with this. 我们的标准工具包基于Wicket,JPA和Spring,但我担心这会给我们的新同事多收费用。

Now I'm looking for suggestions about the best framework for web application that can be used by beginners. 现在我正在寻找有关可供初学者使用的最佳Web应用程序框架的建议。 It should be using the java language and it should be easy to connect to a database (oracle, mysql,...). 它应该使用java语言,它应该很容易连接到数据库(oracle,mysql,...)。 If JPA is involved its complexity should be hidden by the framework - at least for the first steps and for common development tasks (CRUD). 如果涉及JPA,其复杂性应该被框架隐藏 - 至少对于第一步和共同开发任务(CRUD)。

Recently I stumbled upon the play framework (http://www.playframework.org/). 最近我偶然发现了游戏框架(http://www.playframework.org/)。 At the first looks it seems to fit our needs. 在第一眼看来它似乎符合我们的需求。 Is there anybody who has some experiences with it? 有没有人有这方面的经验?

I would certainly recommend the Stripes framework. 我当然会推荐Stripes框架。

I was in a similar situation to your colleague a year or two back, relatively new to Java web applications and was given a small project. 我和你的同事在一两年后情况类似,对Java Web应用程序来说相对较新,给了一个小项目。 I had the choice of Struts or Spring MVC but opted for Stripes as it was considerably easier to get to grips with 我可以选择Struts或Spring MVC,但选择了Stripes,因为它更容易掌握

It can also integrate nicely with Spring (check documentation for "Stripersist", examples are tied in with that) 它也可以很好地与Spring集成(检查“Stripersist”的文档,示例与之相关)

I also wrote a quick tutorial on getting started, you may wish to have a read (admittedly I need to fix the syntax highlighting... :( ) 我还写了一个关于入门的快速教程 ,你可能希望有一个阅读(诚然,我需要修复语法高亮... :()

SpringMVC is the obvious way to go because you already use Spring in your stack so other developers will be able to help if he gets stuck. SpringMVC是显而易见的方法,因为你已经在堆栈中使用了Spring,所以其他开发人员如果遇到困难就能提供帮助。 Have him sit down with the tutorial and develop his own application. 让他坐下来阅读教程并开发自己的应用程序。

Although the Play framework looks great (thanks for pointing it out) I would advise not using it as a tutorial unless it meshes well with your future plans for your framework stack. 尽管Play框架看起来很棒(感谢指出它),但我建议不要将它用作教程,除非它与您未来的框架堆栈计划相吻合。 I mean, what's the point of your junior guy learning something that the rest of you have no intention of ever using? 我的意思是,你的小伙子学到一些其他人无意使用的东西的重点是什么?

I think if he's heading towards Wicket/Spring/JPA, then he shouldn't spend time with something unrelated; 我想如果他要走向Wicket / Spring / JPA,那么他就不应该花时间与一些无关的东西; that seems like rather a waste. 这似乎是一种浪费。

I'd start with JPA in a standalone app, run from the command line (or the IDE or whatever). 我从一个独立的应用程序开始使用JPA,从命令行(或IDE或其他)运行。 Let him write some kind of handy database tools, something to do reporting or some such. 让他写一些方便的数据库工具,做报告或其他一些事情。

Then move on to plain J2EE - servlets, then JSPs, not using any framework stuff. 然后继续使用普通的J2EE - servlet,然后是JSP,而不是使用任何框架内容。

Then bring in Spring. 然后带上春天。 Then Wicket. 然后Wicket。

Hi If you are going to develop a CRUD application I really would consider spring/roo. 嗨如果您要开发CRUD应用程序,我真的会考虑spring / roo。 It has the CRUD capabilities of Grails but you don't have to add any JAR to your application, therefore you have 100% java platform. 它具有Grails的CRUD功能,但您不必向应用程序添加任何JAR,因此您拥有100%的Java平台。 Moreover, it supports reverse eng. 而且,它支持反向eng。

Luis 路易斯

Play is the best java & scala framework in my opinion. 在我看来,Play是最好的java和scala框架。 It's easy, powerful, used by many projects ( http://www.playframework.org/community/testimonials ) and have a high momentum. 它很容易,功能强大,被许多项目( http://www.playframework.org/community/testimonials )使用并且具有很高的发展势头。 Grails is buggy, spring roo is like a aop template generator and spring become as cumbersome as Java EE. Grails是有缺陷的,spring roo就像一个aop模板生成器,spring就像Java EE一样繁琐。 Development with play is very fast (play team won the devderby 2010 bypassing ruby,php and asp.net teams) and efficient. 开发与游戏非常快(游戏团队赢得了2010年绕过ruby,php和asp.net团队的devderby)并且效率很高。

my best 我最好的

Serdar 塞尔达

I'd recommend he get started on Wicket from day 1. 我建议他从第1天开始使用Wicket。

If he's done any desktop development in a previous life then the event driven architecture of Wicket will most closely match that. 如果他在以前的生活中完成了任何桌面开发,那么Wicket的事件驱动架构将与之最为接近。 The Request/Response paradigm of traditional HTTP that most older Java frameworks follow (JSP etc.,) is fairly prehistoric and I don't see why you would want to side track him on that instead of getting him up to speed quickly on the much more productive event driven, component oriented paradigm of Wicket. 大多数旧Java框架遵循的传统HTTP的请求/响应范例(JSP等)是相当史前的,我不明白为什么你会想要跟踪他,而不是让他快速加速更高效的事件驱动,面向组件的Wicket范式。

Ah I remember the old days... JSPs. 啊,我记得过去...... JSPs。 actions, .do's, XML config hell. 动作,.do,XML配置地狱。 Sure I could do it but these days a developer's life can be so much more productive using a well designed framework with a smart paradigm like Wicket. 当然,我可以做到这一点,但是现在开发人员的生活可以通过精心设计的框架以及像Wicket这样的智能范例来提高生产力。

First decide what your application is all about then go on with framework and patterns. 首先确定您的应用程序是什么,然后继续使用框架和模式。 Don't just build an application choosing the best in industry. 不要只是建立一个选择业内最佳的应用程序。

For instance eCommerce based application i would prefer ATG over Spring and for normal Web application i would go with Struts or Spring depending upon the complexity of the application. 例如基于电子商务的应用程序我更喜欢ATG而不是Spring,而对于普通的Web应用程序,我会根据应用程序的复杂性使用Struts或Spring。

If you're already using Spring, why would you introduce yet another technology? 如果你已经在使用Spring,为什么要引入另一种技术呢? Why is Play an improvement over Wicket or Spring? 为什么Play比Wicket或Spring更好?

Personally, I would recommend sticking with Spring: Spring MVC without Wicket, simple JDBC template instead of JPA. 就个人而言,我建议坚持使用Spring:没有Wicket的Spring MVC,简单的JDBC模板而不是JPA。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 关于Web应用程序环境中的Java Executor框架 - Regarding Java Executor framework in a Web applications enviornment 基于java web的应用程序中的excel规则 - Rules from excel in java web based applications 基于Java的Web应用程序的Windows身份验证,如何? - Windows Authentication for Java Based web applications, How to? 基于Java的Web框架替代方案 - Java based web framework alternatives 用于开发 Java Web 服务的最佳 IDE(适合初学者) - Best IDE for developing java web services (for beginners) 为多个 Web 应用程序正确构建 Java Spring 框架项目 - Properly structuring a Java Spring framework project for multiple web applications 用于创建Ajax网站的Java框架(与Web应用程序相对) - Java Framework for creating Ajax Websites (as opposed to web applications) 是否有任何 static 代码分析工具适用于基于 Spring 框架的 java 应用程序? - Is there any static code analysis tool for Spring Framework based java applications? 如何:使用Play Framework 2.1为初学者访问RESTful Web服务 - How to: Accessing RESTful Web Services with Play Framework 2.1 for Beginners 如何在开发基于Java EE的Web应用程序时提高工作效率 - How to improve productivity when developing Java EE based web applications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM