java 在学习 Spring 之前我应该知道什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7770837/
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
What should I know before learning Spring?
提问by ZoFreX
I've been learning Spring and I'm really liking what I'm learning, but feel ill-equipped to do anything at the moment. I know Java really well, I'm ok at ant, but I don't know anything about: J2EE, JSP, Servlets, Tomcat, Maven, Hibernate, JPA, and I've never made any kind of website using Java (I've made lots of applications in Java, but all websites I've made were using PHP).
我一直在学习 Spring 并且我真的很喜欢我正在学习的东西,但目前我觉得自己没有能力做任何事情。我非常了解 Java,我擅长 ant,但我对:J2EE、JSP、Servlets、Tomcat、Maven、Hibernate、JPA 一无所知,而且我从未使用 Java 制作任何类型的网站(我我已经用 Java 制作了很多应用程序,但我制作的所有网站都使用 PHP)。
Should I cement some of my knowledge of the "basics" or should I keep slogging away at Spring?
我应该巩固我对“基础”的一些知识还是应该继续努力学习 Spring?
采纳答案by nicholas.hauschild
Spring is a monster. It all depends on what part of Spring you are interested in. A good starting point would be the Dependency Injection container, which requires none of the technologies that you are unfamiliar with (the ones from your question).
春天是个怪物。这完全取决于您对 Spring 的哪个部分感兴趣。一个好的起点是依赖注入容器,它不需要您不熟悉的任何技术(来自您问题的技术)。
If you are interested in learning Spring MVC (which it sounds like you might be based on the technologies you mention), I would recommend learning the basics in these (again from your question):
如果您有兴趣学习 Spring MVC(听起来您可能基于您提到的技术),我建议您学习这些基础知识(同样来自您的问题):
- Servlets
- JSP
- Tomcat (or another web application container)
- 小服务程序
- JSP
- Tomcat(或其他 Web 应用程序容器)
For Spring MVC I would also look at the idea of RESTful web services.
对于 Spring MVC,我还将研究RESTful Web 服务的想法。
You can find a (likely) comprehensive list of Spring projects at this link.
您可以在此链接中找到(可能)完整的 Spring 项目列表。
回答by tolitius
I would recommend three things:
我会推荐三件事:
Lots of Reading=> Spring Documentation in a Single Page
Lots of Coding=> You can start off by getting an exampleSpring / Hibernate project. And then use Spring Tool Suite, which includes manyinteractive tutorials, andtemplate projects that just work without any coding at all.
Find a Spring User Groupnext to the place you live. If there is no such group => create one!
大量阅读=>单页中的Spring 文档
大量编码=> 您可以从获取示例Spring / Hibernate 项目开始。然后使用Spring Tool Suite,其中包括许多交互式教程和无需任何编码即可工作的模板项目。
在您居住的地方附近找到一个 Spring 用户组。如果没有这样的组 => 创建一个!
It is totallyok that you don't know JSP / Servlets / Tomcat / J(2)EE / etc. Extremely smart people who, for example, write Linux kernel (which is a lot more complex) may not know it as well. The beautyof Spring is that going through it, and reading about best patterns and approaches you'll get all the above. No need to learn J(2)EE separately. Spring is J(2)EE of today.
这是完全OK,你不知道JSP / Servlet的/ Tomcat的/ J(2)EE /等绝顶聪明的人谁,例如,写入Linux内核(这是很多更复杂的)可能不知道它。Spring的美妙之处在于,通过它,阅读有关最佳模式和方法的内容,您将获得上述所有内容。无需单独学习J(2)EE。Spring 是今天的 J(2)EE。
回答by java_mouse
For a good enterprise developer, I would recommend
对于优秀的企业开发人员,我会推荐
a) very very good core java ( including collections, jdbc , threads) b) servlets
a) 非常非常好的核心 java (包括集合、jdbc、线程) b) servlet
Then I think you can start diving into spring.
那么我想你可以开始潜入春天了。
回答by andronikus
If you want to accomplish something quickly to start with, definitely look at JSPs. A JSP is basically an HTML document with some special <% %>
tags where you can just shovel in java. It's really entertaining, although nothing you'd want to use for a large-scale application.
如果您想快速完成某项工作,请务必查看 JSP。JSP 基本上是一个带有一些特殊<% %>
标签的 HTML 文档,您可以在其中使用 Java 进行挖掘。这真的很有趣,尽管您不想将其用于大型应用程序。