On the failure of refresh configuration from the implementation principle of RefreshScope
preface
In spring IOC, the well-known BeanScope includes singleton and prototype. The scope of the Bean affects the creation method of the Bean. For example, when creating a Bean with Scope=singleton, the IOC will save the instance in a Map to ensure that the Bean has only one instance in an IOC context. Spring cloud adds a scope of refresh ra ...
Posted by sajy2k on Wed, 02 Feb 2022 07:21:22 +0100
Spring 5 from entry to grave: developing with annotations
jdk1.5 start supporting annotations, spring 2 5 start comprehensive direct annotation
Preparation: inject attributes by annotation
1. Introduce the context file header into the spring configuration file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.o ...
Posted by johanafm on Wed, 02 Feb 2022 06:10:49 +0100
Crazy liver strongest Java EE framework high-intensity learning
SpringBean container: Beans are java objects. The container is responsible for the management of the whole life cycle of java objects, including creation, modification and destruction
IOC control reversal IOC: it's an idea IOC container: the implementation container of IOC thought
DI One of the ways to implement IOC, dependency injection, is ...
Posted by Stalingrad on Tue, 01 Feb 2022 20:09:21 +0100
Spring learning notes
advantage:
Spring is an open source, free framework (container)Spring is a lightweight, non intrusive frameworkInversion of control (IOC), aspect oriented programming (AOP)Support transaction, support for framework integration
jar packages to import:
<!-- Importing this package will directly import other packages, including core,conte ...
Posted by bhagwat on Tue, 01 Feb 2022 19:06:02 +0100
Basic introduction to Spring [continuous update]
Common dependency
1. Pring context dependency
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.13</version>
</dependency>
3.junit
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactI ...
Posted by barrylee on Tue, 01 Feb 2022 18:56:58 +0100
Caffeine, the king of local cache
introduction
With the growth of business volume, the cache schemes used generally go through the following steps: 1) query DB directly without cache; 2) Data synchronization + Redis; 3) Multi level cache has three stages.
In the first stage, direct DB query can only be used in small traffic scenarios. With the increase of QPS, cache needs to ...
Posted by networkthis on Tue, 01 Feb 2022 15:14:40 +0100
Introduction and configuration of Spring
1. spring overview
1.1 what is spring
Spring is a lightweight open source framework for layered Java SE/EE application full stack, with IoC (Inverse Of Control) and AOP (Aspect Oriented Programming) as the kernel. It provides many enterprise application technologies such as presentation layer spring MVC, persistence layer spring JDBC tem ...
Posted by bigmichael on Tue, 01 Feb 2022 09:17:30 +0100
[spring cloud] interpretation of the implementation of spring cloud loadbalancer
preface
In this chapter, I will explain the specific load balancing rules. First, I will express my personal understanding of the spring cloud loadbalancer load balancing rules:
Get the corresponding instance collection according to the service ID, which contains some rules: get from the registry? Same region priority? Cache? etc.Select t ...
Posted by larissahn on Tue, 01 Feb 2022 02:57:59 +0100
[SpringBoot] SpringBoot - Spring Security Framework
6. Spring Boot Security Framework
6.1 Understanding Spring Security
Spring Security is dedicated to providing Authentication and Authorization management for Java applications.
Certification: This is mainly to solve the problem of who I am by providing evidence to prove that you are the person you say.
Authorization: This is mainly to ...
Posted by darklight on Mon, 31 Jan 2022 19:04:21 +0100
Spring learning -- Spring Bean management
Spring Bean management
xml based configuration mode
bean configuration requires spring managed classes id generated object name Class full class name name object alias, which can be multiple scope: Singleton (default): there is only one bean instance in Spring, singleton mode Prototype: when the prototype getBean(), new Bean() Request: each h ...
Posted by tsabar on Mon, 31 Jan 2022 16:59:36 +0100