如何开始使用 Java 服务器端技术?

发布于 2024-08-18 00:57:27 字数 1539 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

汐鸠 2024-08-25 00:57:27

您可能想从学习 Servlet 和 JSP 的基础知识开始。这些是 Web 应用程序框架的构建块。

除了了解 Servlet 一般如何工作之外,我不会在 Servlet 上花费太多时间。如今,大部分繁重的工作都是由 Web 应用程序框架完成的。

一旦您熟悉了 Java 如何将内容作为网页提供服务的基础知识,就可以继续学习更复杂的框架,例如 JSF、Spring Web MVC 或 Struts。这些框架都利用了 MVC 设计模式,您可能已经在 PHP 框架中使用过该模式(如果没有,这是一个非常值得学习的原则)。所有这些项目都有详细的文档记录并拥有相当大的社区。

需要说明的是,我认为 JSF 的学习曲线比 Spring 或 Struts 更陡峭。如果您对 JSF 感兴趣,我建议您研究一下 Seam 框架,它利用了 JSF,但也在一定程度上简化了其使用。您可以同时学习JSF+Seam。

至于书籍……对于 JSF,我喜欢Core JavaServer Faces。对于 Spring,我喜欢Spring in Action

You might want to start off by learning the basics of Servlets and JSP. Those are the building blocks for web application frameworks.

I wouldn't spend too much time on Servlets beyond an understanding of how they generally work. Most of the heavy lifting is done by web app frameworks these days.

Once you're familiar with the basics of how Java serves things up as a web page, move on to more sophisticated frameworks such as JSF, Spring Web MVC or Struts. These frameworks all utilize the MVC design pattern, which you may have used with PHP frameworks (if not, it's a very good principle to learn). All of those projects are well-documented and have a sizable community.

As a note, I feel that JSF has a steeper learning curve than either Spring or Struts. If you are that interested in JSF, I recommend looking into the Seam framework, which utilizes JSF but also somewhat simplifies its use. You can learn JSF+Seam concurrently.

As for books... for JSF, I like Core JavaServer Faces. For Spring, I like Spring in Action.

暖树树初阳… 2024-08-25 00:57:27

我会向您推荐《Head First Servlet and JSP》这本精彩的书,让您非常完美地了解 JSP 和 Servlet,并掌握服务器端知识。

Head First Servlet 和 JSP

I would recommend you Head first Servlet and JSP this fantastic book gives you kick start for JSP and Servlet with the Server side knowledge very perfectly.

Head First Servlets and JSP

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文