Analysis of the startup process of Tomcat

Tomcat architecture Before the server.cat is initialized, the Tomcat will be started xml to create a multi-layer container. This container is composed of several components, with server xml as an example, this xml file contains the components to be started. <Server> <Service> <Connector /> <Connector /&g ...

Posted by numoon56 on Mon, 23 May 2022 20:05:09 +0300

Cluster architecture - Nginx load balancing and Tomcat cluster

1: Load balancing technology 1. Introduction of load balancing technology Load balancing technology is a concept that evenly distributes the use of resources. Load balancing: distribute traffic and requests to different servers. Distribute the flow evenly (ideal state) effect: Server disaster recovery traffic distribution Main functions: ① T ...

Posted by davidcriniti on Thu, 19 May 2022 18:09:29 +0300

Installation and optimization of tomcat

I Introduction to Tomcat 1.1 introduction to Tomcat Free, open source Web application server The Apache Software Foundation is a core project of the Jakarta project It is jointly developed by Apache, Sun and some companies and individuals It is deeply loved by Java lovers and recognized by some software developers It is a popular Web applica ...

Posted by DiceyJono on Mon, 09 May 2022 01:29:50 +0300

Java Web filters and listeners

11, Filter filter 11.1 what is a Filter To access a servlet, you can go through the filter first, then access the servlet, and then go through the filter when returning. Draw a picture: That is, a layer of filter is added before the servlet. What's the use? For example, we can use it to deal with Chinese garbled code without adding such a ...

Posted by Xonnie316 on Tue, 26 Apr 2022 15:57:02 +0300

Creation of Servlet based on Web Application

1. What is a Servlet? Servlet is a dynamic web resource development technology provided by SUN company. It is essentially a java program running on the server side. It should be noted that this java program cannot run independently. It must be placed in the Servlet container (such as tomcat server) and called by the container before it can be ...

Posted by Zaynt on Sun, 24 Apr 2022 22:29:01 +0300

JavaWeb domain object & EL expression & JSTL

catalogue I. domain object 1. What is scope? 2. Four domain objects 2, EL 1. Why do I need EL 2. What is EL 3. Functions of EL 4. EL syntax 5. Characteristics of EL 🔘 Automatic conversion type 🔘 Easy to use 6. EL variable attribute range name 7. Get the data in the object set 3, JSTL 1. Why use JSTL? 2. What is JSTL? 3. Steps f ...

Posted by gregmiller on Fri, 15 Apr 2022 19:19:50 +0300

java code audit -- Construction of sql injection environment

The main database operators in java are mybatis and Hibernate. Next, let's introduce how the mybatis framework causes SQL injection. Because I read some articles on the Internet and found that basically everyone is directly on the framework, but there may be some Xiaobai like me who are not familiar with mybatis and jdbc. Therefore, I plan to s ...

Posted by Dave3765 on Fri, 15 Apr 2022 15:37:55 +0300

Java web shopping cart project

catalogue Project premise Creation of database User table Commodity list Create packages and classes using eclipse: Main functions 1. Shopping cart user login 2. Product display 3. Shopping cart Addition & calculation of total quantity and price of goods 1, Project premise 1. The shopping cart is not always in the database ...

Posted by boon_chong on Thu, 14 Apr 2022 06:10:45 +0300

General use of spring MVC

This is the Java Web project 1.Maven dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion& ...

Posted by eojlin on Wed, 13 Apr 2022 02:34:59 +0300

Demo Filter implements login and logoff

13. Common applications of filters Filter Demo: Overall idea: front end: A form obtains the username and sends it to the servlet (locate the URL of the registered servlet through the action of the form)A success interface, which provides a logout button (after logout, directly jump to the index interface)An error interface, which provi ...

Posted by JohnnyBlaze on Sat, 09 Apr 2022 13:59:20 +0300