了解 servlet 容器 [英] Understanding servlet container

查看:44
本文介绍了了解 servlet 容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一名 UI 开发人员和 Java 知识非常有限的人,我如何简单地理解 servlet 容器到底是什么?

As a UI devloper and someone with very limited Java knowledge, how do I understand what exactly is servlet container in simple terms ?

我听说 Weblogic、JBoss 等都是 servlet 容器,但不确定这究竟是什么意思.这是否意味着任何中间件技术?

I have heard Weblogic, JBoss, etc are servlet containers, but not sure what that means exactly. Does it mean any middleware technology ?

你能帮帮我吗?

推荐答案

servlet 容器是一个应用服务器,它实现了 Java Servlet 规范.

A servlet container is an application server that implements some version of the Java Servlet Specification.

简而言之,servlet 规范定义了一种编程模型,允许开发人员编写处理请求(几乎总是 HTTP 请求)的组件,例如 servlet.然后可以将这些组件声明到容器中,它会处理与连接和管理这些组件相关的许多繁琐任务,以便它们可以处理这些请求.

In a nutshell, the servlet spec defines a programming model that allows a developer to write components, for example servlets, that process requests (almost always HTTP requests). Those components can then be declared to the container and it handles many of the tedious tasks involved with wiring up and managing those components such that they can process those requests.

这篇关于了解 servlet 容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆