Author: Waste senior brother
1.1. Integration mode
There are four ways to integrate Elasticsearch in Spring Boot:
Spring Data Elasticsearch Repositories
This paper uses the following two methods to connect and operate elastic search respectively
1.2. Environm ...
Posted by RwpTechAdMin on Fri, 19 Jun 2020 01:00:37 -0700
Fegin is a declarative pseudo Http client, which makes it easier to write Http clients. With Feign, you only need to create an interface and annotate it. It has pluggable annotation feature and can use fegin annotation and JAX-RS annotation. Fegin supports pluggable encoders and decoders. Fegi ...
Posted by Hailwood on Thu, 18 Jun 2020 19:41:56 -0700
1, What is dependency injection
Dependency management is managed and maintained by the spring framework. Other class resources needed by the current class are provided by spring. We only need to declare them in the configuration file. The maintenance of dependency is called dependency injection
Posted by DarrenReeder on Thu, 18 Jun 2020 19:12:48 -0700
------------------------------------------------ Cute dividing line---------------
Quote what I wrote: SpringCloud version Hoxton SR5 - Lesson 1: Understanding First look at what eureka can do, or its positioning and role in the project.
The functions and functions mentioned before are in plain Chi ...
Posted by Dilbert137 on Thu, 18 Jun 2020 18:59:31 -0700
You must have been tortured by interface documents in the development process. Due to the lightweight and low coupling of RESTful interface, we did not update the documents in time after modifying the interface, resulting in frequent complaints from the interface callers (both front-end a ...
Posted by pk99 on Thu, 18 Jun 2020 18:55:13 -0700
Object of single case management
When scope = singleton, that is, by default, it is instantiated when the container is started (that is, when the container is instantiated). But we can specify the lazy init = "true" of the bean node to delay the initialization of the bean. In this case, the be ...
Posted by fluvly on Thu, 18 Jun 2020 18:38:31 -0700
IOC introduction of Spring
Spring's IOC idea
One of Spring's core ideas: IOC (Inversion Of Control) Inversion Of Control.
Inversion Of Control (IOC): it is an important feature of the framework to hand over the creation, initialization, destruction and other work of objects to the framework. It's no ...
Posted by Robin M on Thu, 18 Jun 2020 03:34:40 -0700
java singleton mode means to ensure that there is only one instance of a class and provide the instance to the global during the whole system operation.
Main implementation mode:
1, Instant load
Class objects are created as soon as the class file is loaded, whether or not they are called. (starving ...
Posted by calande on Wed, 17 Jun 2020 21:43:25 -0700
From: ape world, address:
Explain the background
Thread pool is still used in daily work. When asynchronous and batch processing tasks are needed, we will define a thread pool to handle them.
There are some problems in the process of using thread p ...
Posted by knetcozd on Wed, 17 Jun 2020 20:45:16 -0700
RabbitMQ is a message queue. When it comes to message queues, you may have heard of it more or less. Its main function is to realize asynchronous and decoupling of application services, as well as to cut peak, fill valley and distribute messages.
One of the main functions of message queuing in ...
Posted by .Stealth on Wed, 17 Jun 2020 19:10:40 -0700