Understanding servlet container(了解 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 容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:了解 servlet 容器
基础教程推荐
- 验证是否调用了所有 getter 方法 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
