Getting Started with the Web - Web Server

The web server is a program software that encapsulates the operation of the HTTP protocol , so that programmers do not need to directly operate the program, making web development more convenient and simplifying web program development . The main function is "browsing services through online information".

Tomcat

  • Concept: Tomcat is a core project of the Apache Software Foundation. It is an open source, free and lightweight web server that supports Servlet/JSP and a small number of javaEE specifications.
  • JavaEE: Java Enterprise Edition, Java Enterprise Edition. Refers to the sum of technical specifications for java enterprise-level development. Contains 13 technical specifications: JDBC, JNDI, EJB (replaced by Spring), RMI, JSP, Servlets, XML, JMS, Java IDL, JTS, JTA, JavaMail, JAF. (collectively referred to as the JavaEE specification)
    • Three major branches of Java
      • JavaSE: Java Standard Edition
      • JavaME: Java Small Edition: Developing applications for embedded devices (mobile phones, car devices)
      • JavaEE: Java Enterprise Edition
  • Tomcat is also known as Web container and Servlet container. Servlet programs need to rely on Tomcat to run.
  • Official Website: Apache Tomcat® - Welcome!

 Spring Boot project

In the common SpringBoot project, after adding Spring Web dependencies, the built-in tomcat will be completed, and the embedded tomcat server can be started by running the startup class, and then the application deployed to the web server can be accessed by sending a request in the browser.

  • Start dependency
    • spring-boot-starter-web
      • Common dependencies required for web development ( built-in tomcat dependencies )
    • spring-boot=starter-test
      • Dependencies required for unit testing 
  • Embedded Tomcat server
    • The web application developed based on SpringBoot has an embedded Tomcat server. When the startup class runs, the embedded Tomcat server will be automatically started

Guess you like

Origin blog.csdn.net/weixin_64939936/article/details/131657503