Talk about how to synchronize data to the apollo configuration center
prefaceFriends who have landed micro service projects should be familiar with the configuration center. The configuration center can be used for centralized management of configuration and hot update of configuration. At present, the common configuration centers in the market include QConf, spring cloud config, diamond, disconf, apollo, nacos, ...
Posted by Or1g1naL on Tue, 22 Feb 2022 02:41:07 +0100
Several Tomcat performance optimization directions
Open Tomcat management interface
Modify Tomcat \ conf \ Tomcat users XML add user
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="admin-gui,admin,manager-gui,manager"/>
Note: Tomcat9 also needs t ...
Posted by HostingTrade on Tue, 22 Feb 2022 02:38:49 +0100
Android HAL hardware abstraction layer loading process
The hardware manufacturer is protecting the core code and will present the core implementation in the HAL layer in the form of so library. When necessary, HAL will automatically call the relevant shared library.
Format of shared library
<MODULE_ID>.variant.so
id: the unique number of the hardware moduleVariant: the variant name. T ...
Posted by maralynnj on Tue, 22 Feb 2022 02:00:43 +0100
JSR303 data verification Spring unified exception handling
JSR303 performs data verification
1. Add verification annotation to Bean Multiple annotations can be verified
@NotBlank(message = "Brand name cannot be empty")
private String name;
//Cannot be empty + custom rule
@NotEmpty
@Pattern(regexp = "!/^[a-zA-Z]$/",message = "The search initial must be a letter")
private String firstLetter;
//Canno ...
Posted by Kodak07 on Tue, 22 Feb 2022 00:50:58 +0100
Simple analysis of ReentrantLock source code
Simple analysis of ReentrantLock source code
Most of the content comes from reprint https://www.cnblogs.com/waterystone/p/4920797.html , I only wrote the state and Condition sections,
Author: Water rock source: http://www.cnblogs.com/waterystone Articles not reproduced in this blog belong to the author Water rock It is shared with the b ...
Posted by RHolm on Mon, 21 Feb 2022 22:04:12 +0100
Introduction to bubble sorting and sorting of two-dimensional arrays
1. Brief introduction of bubble sorting
Bubble Sort, also known as Bubble Sort, is a simple sorting algorithm. It repeatedly visits the columns to be sorted, compares two elements at a time, and exchanges them if they are in the wrong order. The work of visiting a number of columns is repeated until no exchanges are needed, that is, the ...
Posted by coder500 on Mon, 21 Feb 2022 18:38:40 +0100
Spring Security configures a filter, and so does the volume
In the past, Pangge took you to realize verification code authentication with Spring Security filter. Today, let's improve the configuration of verification code authentication, which is more in line with the design style of Spring Security and more internal.CaptchaAuthenticationFilter is implemented by imitating UsernamePasswordAuthenticationF ...
Posted by shrive22 on Mon, 21 Feb 2022 16:46:35 +0100
The Spring framework summarizes the common ways in which Spring creates bean s
The Spring framework summarizes the common ways in which Spring creates bean s
1, Common ways Spring creates bean s
xml configuration file@Bean annotation@ComponentBeanDefinitionFactoryBeanSupplier
2, Use of various creation methods
1.xml configuration file
First create a User entity class
public class User {
private String name; ...
Posted by Zhadus on Mon, 21 Feb 2022 16:42:57 +0100
IDEA realizes ssm integration and rapid development CRUD -- basic environment construction
Project description
This project is a learning note document based on Shang Silicon Valley video, which is only used for learning, combing and summarizing relevant knowledge for later review, not for commercial purposes.
Project introduction
According to the basic frameworks such as Spring, Spring MVC and MyBatis, a simple addition, dele ...
Posted by Tandem on Mon, 21 Feb 2022 16:31:36 +0100
Elasticsearch rest high level client operation elasticsearch, an article that takes you into a no man's land
abstract
Idle boring, so I wrote this cool article, which Mina sang can use directly, unless there are almost no bug s, when I didn't say (doge) QA: why don't you rely on the operation encapsulated by springboot? Ou believes that springboot over encapsulates the operation class, and it is OK to realize ordinary and simple operations, but i ...
Posted by ntohky14 on Mon, 21 Feb 2022 16:25:14 +0100