当前位置:网站首页>Lifecycle of Servlet
Lifecycle of Servlet
2022-06-22 09:13:00 【C_ x_ three hundred and thirty】
Servlet The life cycle of can be expressed in three ways :
- init(): Only once , Responsible for loading Servlet Initializes Servlet object
- service() : The core approach , commonly HttpServlet There will be get,post Two ways to deal with it . Calling doGet and doPost Method is constructed servletRequest and servletResponse Request and response objects as parameters .
- destory(): Stop and uninstall Servlet When the , Responsible for releasing resources
Initialization phase :Servlet start-up , Will read the information in the configuration file , Constructs the specified Servlet object , establish ServletConfig object , take ServletConfig Called as an argument init() Method .
init() Further explanation of
1. load Servlet Class and .class Corresponding data
2. establish ServletConfig object
3. establish Servlet object
Every time a request comes to the container , Will produce HttpServletRequest And HttpServlceResponse object , And in the call service() Method is passed in as a parameter .
stay WEB After the container starts , Will read Servlet Set up information , take Servlet Class loads and instantiates , And for each Servlet Setting information generates a ServletConfig object , And then call Servlet Interface init() Method , And will produce ServletConfig Object is passed in as a parameter .
边栏推荐
- PHP output color image with specified height and width for web page background image
- Manually mining XSS vulnerabilities
- list_head
- Didi's two-sided summary
- How much do you know about the required encryption industry terms in 2022?
- When easypoi imports the secondary header data of an excel file, the data in the first column of the @excelentity entity class is null
- [target detection] | detection error mechanism why object detectors fail: investigating the influence of the dataset
- 逻辑回归和线性回归
- 版本问题导致“无法定位程序输入点OPENSSL_sk_new_reserve于动态链接库C:\Users...\libssl-1_1-x64.dll”
- Alibaba big fish SMS interface PHP version, simplified version Alibaba big fish SMS sending interface PHP instance
猜你喜欢

关于EasyPoi导入Excel文件二级表头数据时@ExcelEntity实体类里的第一列数据为null的这档事

【node】快收下爬虫,我们不再为数据发愁
[Architect (Part 39)] connecting MySQL database developed by server

ffmpeg之volumedetect
![[target detection] | detection error mechanism why object detectors fail: investigating the influence of the dataset](/img/d2/101c8ef5dac517718bbe44ee4fd607.png)
[target detection] | detection error mechanism why object detectors fail: investigating the influence of the dataset

機器學習|nltk_Data下載錯誤|nltk的stopwords語料下載錯誤解决方法

Opencv daily function histogram correlation (3)

希望越来越多的女性从事科技工作

Jinglianwen Technology: product summary of machine learning AI dataset (III)

值(址)传递,看清名字,别掉沟里
随机推荐
前馈和反向传播
Traifik ingress practice
版本问题导致“无法定位程序输入点OPENSSL_sk_new_reserve于动态链接库C:\Users...\libssl-1_1-x64.dll”
【node】脚手架搭建服务器,完成token验证
MSSQL injection of SQL injection
ffmpeg之volumedetect
Quick search system (aso+xls) v1.0
try/finally --return那些事
STM32在线升级BootLoader跳转APP时死机问题
mknod
simple_ Strtoull character conversion related functions
文件小能手---multer
pytorch OSError: DLL load failed: 问题解决方法
Troubleshooting various errors when Navicat for MySQL connects to MySQL database
XSS vulnerability attack
5道面试题,拿捏String底层原理!
PHP login registration page
container_ of
Detailed explanation and Simulation of string and memory operation functions
Servlet的生命周期