Store Session of Nginx+Tomcat Load Balancing Cluster with Redis
Environment: Cent OS 7.0 (Virtual Machine Environment), Nginx 1.9.8, Redis 3.2.1
1. Background
When using Nginx+Tomcat for load balancing, because Nginx distributes different requests to a Tomcat, Tomcat runs in different containers, because session s are out of sync or lost.
2. Installation and Configuration of Nginx
1. Nginx I ...
Posted by TalonFinsky on Tue, 09 Jul 2019 10:52:53 -0700
The Thinking Logic of Computer Programs (84) - Reflection
Upper segment After concurrency is introduced, starting with this section, we will explore some of the dynamic features of Java, including reflection, class loaders, annotations, and dynamic proxies. With these features, some flexible and general functions can be implemented in an elegant way, often used in various frameworks, libraries and sys ...
Posted by timecatcher on Wed, 03 Jul 2019 17:26:31 -0700
Investigation and Source Code Analysis of Quatz-Cluster Scheduling Mechanism
1. Introduction
Quratz is the most mature and widely used java task scheduling framework with powerful functions and flexible configuration. It plays an important role in enterprise applications. The way quratz is used in cluster environment is a problem that every enterprise system should consider. As early as 2006, there was a discussion on q ...
Posted by capslock118 on Sat, 29 Jun 2019 14:31:11 -0700
Sprmvc file upload
spring mvc file upload needs to rely on commons-io and commons-fileupload to achieve together
premise
Assuming that the dependencies, configurations, etc. on spring mvc are normal and usable, that part is not explained in this article.
rely on
Managing with maven requires dependencies that include
<dependency>
<groupId>co ...
Posted by aneuryzma on Fri, 28 Jun 2019 18:17:11 -0700
Spring MVC receives uploaded pictures and stores them in local directories
Preface: Project Environment
This simple demo is based on the spring MVC framework. The deployment environment is tomcat, which is used in the previous section. bootstrap+jquery_file_upload Components. The way to store pictures is to store them in the virtual directory and return them to the virtual directory. It is suggested to match Spring MV ...
Posted by coder500 on Wed, 26 Jun 2019 14:51:31 -0700
Problems with AMQ under Servlet 3.0
Question 1: http status 500
Description:
When the project switched to Tomcat 7, there was a problem with message push implemented by amq. Most of the requests sent by amq.js were 500, only a few were 200.
Analysis:
Under Servlet 2.5 container, the servlet component supports asynchronous communication by default, but it needs to be open ...
Posted by xtops on Tue, 18 Jun 2019 16:52:40 -0700
Log ic settings for Spring Boot
1. Maven dependence
No additional dependencies need to be introduced, just the starter required by Spring Boot:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2. Log format
Without modifying the default settings, Spring Boot ...
Posted by bad_goose on Sat, 15 Jun 2019 17:04:11 -0700
OpenSAML usage boot I: Introduction - everything you need to know about OpenSAML
Relevant Reading SAML 2.0 Introduction Guide This article has introduced the basic information of the SAML protocol. Today we will begin to explain OpenSaml, an open source implementation of the SAML protocol.
SAML
What's OpenSAML
OpenSAML is a dependency library that facilitates the use of SAML messages. Its main functions include:
Create S ...
Posted by The.Pr0fess0r on Fri, 14 Jun 2019 17:32:13 -0700
Ionic improves the first loading efficiency by script compression in PC-side Web development
Note that the description in this article is only applicable to PC-side Web development based on Ionic. If it is mobile-side development, you can try to use Uglify JS2 only for compression. Whether there will be any improvement, please verify by yourself, at least the file will load faster when it is smaller. C
1. Questions
1.1. The f ...
Posted by Shygirl on Sat, 08 Jun 2019 15:21:35 -0700
JBoss Multi-instance Port Conflict Problem
Background Introduction
The operating system is Linux CentOS 6.5, JDK is 1.7.0_79 and JBoss version is 4.3.0.GA. The R&D and testing environment needs to enable multiple JBoss service instances on one machine at the same time. When the application is deployed for startup, port conflicts are found.
II. Solutions
1. Solution 1: P ...
Posted by michaelh613 on Sat, 08 Jun 2019 14:15:57 -0700