Learning the mental journey of front-end web -- Introduction to web server software Tomcat and Servlet
web server software
Common concepts:
Server: the computer on which the server software is installedServer software: receive the user's request, process the request and respondweb server software: receive the user's request, process the request and respond.
In the web server software, web projects can be deployed so that users can ac ...
Added by tams on Mon, 10 Jan 2022 10:11:55 +0200
Principle analysis of Tomcat embedded in Spring Boot
preface
Why doesn't Spring Boot need to install additional Tomcat?
Because Spring Boot has a built-in Web server Tomcat, it does not need to be configured separately.
This article mainly analyzes the implementation principle of Tomcat embedded in Spring Boot from the perspective of source code, and discusses when Tomcat is created, started a ...
Added by TashaAT on Mon, 10 Jan 2022 03:10:26 +0200
Why doesn't Spring Boot need to install additional Tomcat?
When I first came into contact with Spring Boot, most children should be as curious as me:
Why doesn't Spring Boot need to install additional Tomcat?
Why on earth? Let's start today's journey with curiosity.
open Previous section We built the tobebeter javaer project and found POM XML file, you can see a parent attribute in it. The code ...
Added by svgk01 on Tue, 04 Jan 2022 05:15:43 +0200
Spring Boot: the Web project is deployed to external tomcat deployment in the form of War package
Spring boot projects are usually packaged as jar s and can be run directly, which is relatively convenient. However, recently, the project needs to package the springboot project into a war and run it in a separate tomcat. There are still many things to pay attention to.
1. Inherit SpringBootServletInitializer
For external container deploymen ...
Added by powlouk on Tue, 04 Jan 2022 02:10:06 +0200
Docker learning notes -- Dockerfile
DockerFile
DockerFIle introduction
dockerfile is the file used to build the docker image! Command parameter script!
Construction steps:
1. Write a dockerfile file
2. Build docker build into an image
3.docker run run image
4.docker push publishing images (DockerHub, Alibaba cloud image warehouse)
See what the authorities do?
Many offi ...
Added by hernan on Sun, 02 Jan 2022 05:50:40 +0200
Tomcat source code analysis - network request processing
1. Tomcat network request processing flow
stay Tomcat source code analysis (1) - structure composition and core components In, the author analyzes the core composition of Tomcat. Therefore, the network request processing of Tomcat can also be divided into the following steps:
Poller distributes socket connection read / write eventsThe ...
Added by pessi on Thu, 30 Dec 2021 11:14:33 +0200
Implementation of springboot websokcet tomcat
There are many ways to implement websocket with springboot, and the simplest one is to implement it with @ ServerEndpoint annotation.
First, we need to introduce the dependency of websocket: pom. XML (the most important dependency)
<!--ws-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactI ...
Added by garmann on Wed, 29 Dec 2021 13:50:09 +0200
Source code analysis of IO entrance and exit AbstractEndPoint
AbstractEndpoint is used as the basis for processing Socket IO. From the naming point of view, it means to process the data at both ends of the TCP connection, which is also the endpoint of communication between two machines.
AbstractEndpoint has different implementations for different IO models:
AbstractEndpoint source code
public abstrac ...
Added by z0mb1 on Tue, 28 Dec 2021 11:05:09 +0200
Jenkins continues to integrate entry to mastery
What is continuous integration
Continuous Integration (CI for short) refers to the frequent (multiple times a day) integration of code into the backbone. The purpose of continuous integration is to enable products to iterate quickly while maintaining high quality.. Its core measure is that the code must pass automated testing before being ...
Added by rashu.dr on Mon, 27 Dec 2021 06:51:46 +0200
Java implementation of simple static dynamic http server
Write static dynamic http server
Use case diagram:
Implementation requirements: The purpose of implementing static dynamic server is to better understand the HTTP protocol and the underlying native principle of Servlet.
Implementation description:
The user submits an http request to the startup port of the specified server through th ...
Added by sametch on Sat, 25 Dec 2021 04:12:37 +0200