1

一文学习web

 2 years ago
source link: https://haojunsheng.github.io/2022/05/web-learning/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一文学习web

calendar.png2022-05-05

| 阅读:1次

  • 静态容器(HTTP容器):Apache,Nginx,处理静态html。

    • 抽象了Socket网络编程。
  • 动态容器:Tomcat,是Servlet规范的实现,比如可以处理jsp

    • 对于每个Http请求,都需要相应的业务类进行处理。

    • 为了不耦合业务,使用了面向接口编程,定义了Servlet接口,业务类实现Servlet接口即可。

    • 特定的请求路由到哪个Servlet呢?于是实现了Servlet容器Tomcat

      img

  • Spring:

    • Spring core:管理对象的生命周期
    • Spring mvc:管理controller对象生命周期(controller本质上也是Servlet)

img

img


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK