SpringCloud Micro Service (05):Zuul component for routing gateway control

1. Introduction to Zuul components 1. Basic concepts Zuul Gateway mainly provides dynamic routing, monitoring, resilience, security control and other functions.In a distributed micro-service system, the system is split into multiple micro-service modules, which route user requests through the zuul gateway and forward to specific post-micro-ser ...

Posted on Wed, 14 Aug 2019 21:48:25 -0700 by abx_2112

A Preliminary Understanding of Spring Cloud

I. Basic Description of MicroService Reasons for MicroService Architecture: Solving the shortcomings of single application framework. Monolith framework: The project organization in which all code and functions are included in a WAR package is called Monolith. Disadvantages of Monolith framework: Compiling, deploying and testing are difficu ...

Posted on Tue, 13 Aug 2019 05:14:29 -0700 by fellixombc

Design Patterns: Five Realizations and Analysis of Singletons

Singleton pattern is the simplest creation pattern in design pattern. The usage scenarios generally include: tool class object, class with only one instance object in the system, creating frequently or time-consuming and frequently used objects, etc. For example, JDK's Runtime class is the starvation singleton mode, and Spring container managem ...

Posted on Tue, 13 Aug 2019 03:46:38 -0700 by changeback

Detailed configuration of spring-boot-plus

Public Configuration application.yml 👉 Official Full Configuration for SpringBoot Tomcat related configuration server: servlet: context-path: /api tomcat: max-threads: 1000 min-spare-threads: 30 uri-encoding: UTF-8 context-path: project access path max-threads:tomcat thread pool size setting min-spare-threads: number of to ...

Posted on Mon, 12 Aug 2019 09:13:30 -0700 by mjs87

no-vnc and node.js to realize web remote desktop

Introduction Project requirements require remote desktop access on the browser side, as shown in the figure: To achieve remote desktop, we need to rely on VNC protocol: VNC (Virtual Network Computing) is a screen picture sharing and remote operation software using RFB protocol. This software can send keyboard and mouse actions and instant scre ...

Posted on Sun, 11 Aug 2019 01:40:39 -0700 by d-woo

springboot-jsp jar problem

[Previous Summary] A recent project was built with the springboot+jsp structure, but when publishing a production environment, it was necessary to use maven as a jar package, but the default configuration at the beginning was not successful.The following article is the specific solution process. 1. Project structure Base, abnormal phenomenon ...

Posted on Sat, 10 Aug 2019 21:34:54 -0700 by eddjc

NIO Transport Protocol of ActiveMQ

Note: Before changing the transport protocol, you must ensure that ActiveMQ is not running!   brief introduction NIO Transport and Conventions TCP transmission Very similar. The difference is that it is implemented using the NIO API, which can help improve performance and scalability. NIO is o ...

Posted on Sat, 10 Aug 2019 03:42:24 -0700 by kester

Shang Xue School Video Notes IV: Common Classes

Common Classes 1. Packaging Classes 1.1 Basic knowledge of packaging java is an object-oriented language, but it is not "object-only" because the basic data types we often use are not objects.But in practice, we often need to convert basic data types into objects for easy operation.For e ...

Posted on Fri, 09 Aug 2019 22:23:27 -0700 by mallen

SpringBoot 2.0 Base Case (03): Configure system global exception mapping handling

1. Classification of Exceptions From the point of view of handling exceptions by the system, there are two main categories of exceptions: business exceptions and system exceptions. 1. Business Exceptions Business exceptions are mainly some predictability exceptions. Handle business exceptions to prompt users for operation and improve the opera ...

Posted on Fri, 09 Aug 2019 11:18:33 -0700 by wilburforce

[Spring of JAVAEE Series] 2003 Create and Use Bean

Bean s are often used to configure relevant information or to rely on injection to prevent hard coding and better unit testing. Bean management is done by Spring. When a Bean object is needed, Spring intercepts your request and returns the existing Bean object to you instead of creating a new object ...

Posted on Fri, 09 Aug 2019 02:20:56 -0700 by vietnamese