当前位置:网站首页>Servlet overview
Servlet overview
2022-07-25 23:05:00 【Mauro_ K】
List of articles
Preface
A simple learning Servlet The record of
One 、Servlet (Java EE 6 )
1. What is? Servlet
Servlet Is in Web Small running in the server Java Program .Servlet Receive and respond from Web Client requests , Usually by HTTP, Hypertext transmission agreement .
It can be understood as Servlet Yes, it is Java Language implementation of an interface , yes Web Browser or something HTTP Client and HTTP The database on the server or the intermediate layer between applications .
2.Servlet The process of
The client initiates a http request
Servlet The container received a request , Read the client ( browser ) Data sent , And call the corresponding... According to the request information Servlet.
Servlet To deal with specific business logic , That's what we wrote Servlet The code in .
Servlet Process data and generate results , Return to Servlet Containers .
Servlet The container returns the final result to the client .
3.Servlet Life cycle of
Servlet By calling init () Method initialization Servlet object ,init Methods are called only once .
Servlet call service() Method to handle client requests ,service() The corresponding doGet perhaps doPost And so on .
Servlet By calling destroy() Method termination ( end ), This method will only be implemented once .
边栏推荐
- 为啥谷歌的内部工具不适合你?
- Network Security Learning (XII) OSI and TCP
- Vs2017 compilation encountered the error HResult e returned by the call of COM component_ FAIL
- 如何获取广告服务流量变现数据,助力广告效果分析?
- Deep recursion, deep search DFS, backtracking, paper cutting learning.
- uvm_ HDL -- implementation of DPI in UVM (4)
- The fifth article in the series of radar Fundamentals: the function of radar modulation style
- Mocha test
- Sichuan cuisine menu (I)
- Network Security Learning (11) scanning and blasting
猜你喜欢

Opencv compile and call GPU version

Day006 select structure (if statement exercise)

【接口性能优化】索引失效的原因以及如何进行SQL优化

The fourth experiment nat

Experience of machine learning with Google Lab

Anaconda~Upload did not complete.

AI首席架构师12-AICA-工业生产过程优化场景下产业落地解析

Tree view model example of QT

【论文笔记】基于在线预测和规划的机器人动态跟踪抓取方法

单元测试,写起来到底有多痛?
随机推荐
5 ROS仿真建模(3- rviz+gazebo+控制仿真机器人)
Check code generation
MathType安装和解决不能Crtl+V的问题
What are the differences between FileInputStream and bufferedinputstream?
通用分页功能
码蹄集 精准弹幕
驱动板网线直连电脑共享网络配置
How to obtain the cash flow data of advertising services to help analyze the advertising effect?
Madness. MySQL learning.
Enabling partners, how can Amazon cloud technology "get on the horse and get a ride"?
Rental experience post
Experience of machine learning with Google Lab
Zcmu--5015: complete the task
Network Security Learning (XV) ARP
Use of qvariant
[paper notes] robot dynamic tracking and grasping method based on online prediction and planning
【PMP学习笔记】第1章 PMP体系引论
The difference between abstract classes and interfaces
access-list vs ip access-list
Ma Tiji Wanmin hall Chef