Nginx+Tomcat Load Balancing Cluster Setup

Introduction to Tomcat Tomcat was originally developed by Sun's software architect James Duncan Davidson The directories and files below the installation path after Tomcat is installed are important files for using or configuring Tomcat Tomcat Important Catalog bin: Stores Tomcat scripts to start and close conf: Store different Tomcat confi ...

Posted by ATLien on Fri, 20 Dec 2019 12:59:55 -0800

websocket simple communication

Using websocket can realize full duplex communication between client and server, and the bottom layer is tcp protocol. Principle and concept please Baidu. . First, we use idea to build a simple web project, and use maven to manage project dependencies. Add spring spring MVN support capability for the project, and add pom depen ...

Posted by Takuma on Wed, 18 Dec 2019 07:51:20 -0800

Struts 2 internationalization - Chinese English conversion

First, create two files under src to provide the resource files required by the program     (careless programmers should pay attention to the File name, which is in the form of key and value.) the specific code is as follows:           Next, write the code in index.jsp <%@ page language="java" import="java.ut ...

Posted by riceje7 on Tue, 10 Dec 2019 21:41:20 -0800

Realization of the back end of tmall's Homepage Based on servlet+filter + reflection simulation

In order to deepen the principle of web, this project does not use the framework, mainly describes the ideas from request to page presentation. For details, please refer to the specific project at the end of the article Why use filter? Direct servlet implementation is not enough Because tmall and other projects need many servlets to handle spec ...

Posted by Shuriken1 on Tue, 10 Dec 2019 02:18:41 -0800

Summary of SpringMVC Parameter Binding Learning [Front and Back End Data Parameter Transfer]

Catalog 1. Binding mechanism 2. Supported data types 3. Parameter Request Chinese Scrambling Resolution 4. Custom Type Converter 5. Summary of Final Parameter Binding Learning As a Controller layer (action in equivalent servlet s and struts), SpringMVC specially handles some requests ...

Posted by Thethug on Sun, 08 Dec 2019 23:31:39 -0800

Nginx+Tomcat load balancing cluster + reverse agent

Experimental environment Nginx server (192.168.13.177) Tomcat1 server (192.168.13.151) Tomcat2 server (192.168.13.178) client tester I. load balancing 1. Install Tomcat service on Tomcat1 and Tomcat2 [root@tomcat1 ~]# systemctl stop firewalld.service ##Turn off firewall [root@tomcat1 ~]# mkdir /abc [root@tomcat1 ~]# mount.cifs //192.168.100.3 ...

Posted by lily on Sun, 08 Dec 2019 15:05:40 -0800

Traditional way and plug-in way realize paging function pageHelper plug-in respectively

Implement paging: there are two ways: traditional paging and classification based on pageHelper plug-in. The latter is recommended First, create a pageUtil tool manually to record all kinds of information of paging, and then use the tedious way to call data pageUtil class can be customized as required package com.imooc.project.util; /** ...

Posted by lwq on Sun, 08 Dec 2019 07:44:01 -0800

Java Web Learning - filters and listeners

Filter The basic knowledge is introduced in detail in the rookie course Rookie tutorial filter   <!--Prepare the first filter--> <filter> <filter-name>Filter1</filter-name> <filter-class>com.servlet.filter.Filter1</filter-class> </filter> <filter-mapping> <fil ...

Posted by snorky on Sat, 07 Dec 2019 13:56:58 -0800

Statistics of on-line number of listeners

Implementation ideas The common process is that the standard mvc is the login form. The user submits the data to the login check. If the login check is passed, the session event will be triggered, saved and entered the online personnel list. The page will jump to the online user list. If the user logs out, it will be deleted from the online lis ...

Posted by Kurrel on Fri, 06 Dec 2019 00:03:33 -0800

The buffer judgment point of geotools JTS Java construction line is in-plane

Because I'm a novice, I haven't been exposed to these things. After studying all day, I finally realized this function with the help of my colleagues It is displayed on Tencent map. Firstly, a line is drawn on Tencent map. The line drawing code is as follows, which is written in JSP: <!DOCTYPE html> <html> &lt ...

Posted by academy. on Thu, 05 Dec 2019 04:57:02 -0800