简体   繁体   English

开始使用Google App Engine Java - 从哪个框架开始?

[英]Beginning Google App Engine Java - Which Framework to start with?

I am new to both JAVA and Google App Engine. 我是JAVA和Google App Engine的新手。 My Interest in Java stems from its compiled nature, speed and widespread enterprise use, whereas my interest in app engine is mainly because of it's initial free nature along with scalalbility. 我对Java的兴趣源于它的编译性质,速度和广泛的企业使用,而我对app引擎的兴趣主要是因为它的初始自由性和可缩放性。

I have been through Google's Getting Started and FAQ , I have modified the guestbook app and generally played around with the datastore, creating a simple entry system for use at work, using database schemas similar to the guestbook app. 我已经通过Google的入门常见问题解答 ,我修改了留言簿应用程序,并且通常使用数据存储区,创建一个简单的入门系统供工作使用,使用类似于留言簿应用程序的数据库模式。 I come from a hackish PHP background, and most of my app consists of JSP pages with HTML and scriptlets mixed, with classes for the datastore stuff. 我来自一个hackish PHP背景,我的大部分应用程序都包含混合了HTML和scriptlet的JSP页面,以及数据存储区的东西。

I have read about JSP, JSTL & JSF(not much) and also the basics of appengine, it's limitations,strengths and quotas. 我读过关于JSP,JSTL和JSF(不多)以及appengine的基础知识,它的局限性,优势和配额。 I also understand that my current approach is flawed. 我也明白我目前的方法是有缺陷的。 I have searched for JAVA frameworks and found one too many. 我搜索过JAVA框架,发现太多了。 I have been through the Will it play in App Engine list , but I do no half of the stuff mentioned there. 我已经通过它在App Engine列表中播放Will ,但我没有提到那里提到的一半。 I understand that webapp(used in the overview) is a framework and so is GWT. 我知道webapp(在概述中使用)是一个框架,GWT也是如此。 I understand I have to learn core java first. 我知道我必须先学习核心java。 What framework should I begin with which is easy to use and also robust/secure enough to handle a financial app? 我应该从哪个框架开始,它易于使用,并且足够强大/安全,足以处理财务应用程序? The framework should also have value, if I were to host it in a pure J2EE environment independent of App Engine. 如果我要在独立于App Engine的纯J2EE环境中托管它,那么框架也应该具有价值。 I would appreciate a word on study resources too. 我也很感激学习资源。 Currently I see this book on amazon as a resource but are there cheaper alternatives like a library with a monthly subscription from where I can peruse similar books.(and I know that Google is a real good resource.) Are there any developers here who have apps hosted on appengine java and would like to share their personal experience of appengine java with a beginner? 目前我在亚马逊上看到这本书作为一种资源,但有更便宜的替代品,比如每月订阅的图书馆,我可以阅读类似的书籍。(我知道谷歌是一个真正的好资源。)这里是否有任何开发人员有在appengine java上托管的应用程序,想与初学者分享他们对appengine java的个人体验?

I use Eclipse with the Google App Engine plugin to develop and upload my apps. 我使用Eclipse和Google App Engine插件来开发和上传我的应用程序。

Regardless of what you want to do in Java you absolutely need to learn your way around the core language and the basic part of the runtime library. 无论你想用Java做什么,你都需要学习核心语言和运行时库的基本部分。

The Java Tutorial covers this and is pretty straightforward. Java Tutorial涵盖了这一点并且非常简单。

Then you need to learn the Servlet API which underlies almost all Java-based web solutions today. 然后,您需要学习Servlet API,它是当今几乎所有基于Java的Web解决方案的基础。 Sun puts this in the full Java EE tutorial (which is a bit heavy) so have a look at this quick overview . Sun将此放在完整的Java EE教程中(这有点重),请看一下这个快速概述

When you have gotten so far, you have a much better idea of what your basic toolbox is, and can give information allowing to give better advice on what technologies you should choose. 到目前为止,您已经对基本工具箱的内容有了更好的了解,并且可以提供信息,以便为您应该选择的技术提供更好的建议。

Sorry for the steep learning curve, but the view on top is fantastic. 对于陡峭的学习曲线感到抱歉,但顶部的视图太棒了。

If you aren't doing Java development currently, and/or haven't done much web development. 如果您当前没有进行Java开发,和/或没有做过多的Web开发。 I definitely wouldn't complicate things with adding frameworks. 我绝对不会通过添加框架来复杂化。

What are you trying to accomplish that you need a framework for outside of the Google App Engine stack? 你想要实现什么,你需要一个外部的Google App Engine堆栈框架?

I've been developing with Java for years and only started using Spring with my Google App Engine app because I need a good security and authentication option. 我已经用Java开发多年了,只开始使用Spring和我的Google App Engine应用程序,因为我需要一个良好的安全性和身份验证选项。 I wish I didn't have to use it since it's a rather steep learning curve. 我希望我不必使用它,因为它是一个相当陡峭的学习曲线。

You should be able to do most everything you need to for a simple app with JSP. 对于使用JSP的简单应用程序,您应该能够完成所需的大部分工作。 If done correctly you can even do it in MVC if you wish. 如果正确完成,您甚至可以在MVC中执行此操作。

On top of everything else people have recommended, I suggest you take a look at Objectify , a much simpler datastore API than the JDO/JPA ones included in the App Engine SDK. 除了人们推荐的所有其他内容之外,我建议你看看Objectify ,这是一个比App Engine SDK中包含的JDO / JPA更简单的数据存储API。

This is, of course, after you've gotten familiar with the core of Java first. 当然,这是在您首先熟悉Java核心之后。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM