Nacos source code analysis - configuration center
catalogue
Initialize the load configuration process
Configure dynamic refresh process
Client sends long polling request
The server handles long polling requests
summary
Initialize the load configuration process
First, analyze the entry from the startup method of SpringBoot
org.springframework.boot.SpringApplication#run(java.lang.Class& ...
Posted by NargsBrood on Tue, 04 Jan 2022 19:26:02 +0100
ATeam community (Chapter 6 of Niuke network project)
1. Introduction to elasticsearch
Introduction to Elasticsearch
A distributed and Restful search engineSupport the retrieval of various types of dataFast search speed and can provide real-time search servicesIt is easy to expand and can process PB level massive data per second Elasticsearch terms
Index, type, document, fieldCluster, n ...
Posted by ericbangug on Tue, 04 Jan 2022 18:08:12 +0100
springboot integrates shiro security authentication framework
First, build a simple test environment
Build a springboot projectDependency is introduced, mainly web starter shiro (security authentication) and thymeleaf (simple page construction). There is no data layer query, so database related is not introduced.
<dependencies>
<dependency>
<groupId>org.springfram ...
Posted by khaitan_anuj on Tue, 04 Jan 2022 08:59:36 +0100
Detailed explanation of Log integration in SpringBoot
Integration of Log in SpringBoot
1, Classification of logs
1. Name classification
log4j: log for javalogBack log description
Note: by default, springBoot integrates logback logs
2. Log classification
Root log: Global log rootlogger (log level of springboot: info)
Sub log: package log logger
3. Log level
OFF = "ERROR =" WARN ...
Posted by RonDahl on Tue, 04 Jan 2022 05:16:43 +0100
Custom starter in SpringBoot project
In the springboot project, we often see a lot of starter dependencies. These starters integrate relevant jar packages, especially the control of relevant jar versions, so as to avoid version conflicts. A starter can load the relevant dependencies, which provides great convenience for us to develop web projects.
SpringBoot starter mechanism
Th ...
Posted by Webxplosion on Tue, 04 Jan 2022 03:54:44 +0100
The life cycle of Bean in Spring
The life cycle of beans in Spring
1. What is the life cycle of beans in Spring
Spring's biggest feature is Bean oriented (BOP) programming. The Bean managed by spring is a POJO, that is, a simple JavaBean (Bean that does not need to implement any specification). Spring provides many methods to enhance the functions of the managed Bean objects ...
Posted by Bea on Tue, 04 Jan 2022 03:09:13 +0100
spring boot integrates spark and runs and submits spark task spark on yarn based on yarn
preface
The previous project was based on springboot and integrated spark, running on standalone. I once wrote a blog, link:
https://blog.csdn.net/qq_41587243/article/details/112918052?spm=1001.2014.3001.5501
The same scheme is used now, but spark is submitted on the production environment yarn cluster, and kerbores verification is required, ...
Posted by not_john on Mon, 03 Jan 2022 23:15:07 +0100
SpringBoot madness 10 - (International)
(3) Page internationalization 1. Unified property code First, uniformly set the code of properties to UTF-8 in the IDEA
2. Prepare i18n international resource documentsThe naming method is a combination of underscores: file name_ Language_ country. properties;
Named in this way, IDEA will help us identify that this is an international confi ...
Posted by Thatsmej on Mon, 03 Jan 2022 20:19:13 +0100
Springboot: auto configuration
1: springboot features
1. Dependency management
The main function of the parent project: dependency management Dependency management
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.4.RELEASE</version&g ...
Posted by Alex007152 on Mon, 03 Jan 2022 19:06:02 +0100
Eureka Client service discovery principle
1, Eureka Client's work
Application startup phase
Read the configuration information interacting with Eureka Server and package it into Eureka clientconfigRead its own service instance configuration information and package it into EurekaInstanceConfigPull the registry information from Eureka Server and cache it locallyService registrat ...
Posted by surreal5335 on Mon, 03 Jan 2022 18:32:49 +0100