Introduction and usage of swagger
swagger describes how to use it
1. Introduction to swagger
1. It is a standard and complete framework for you to better write API documents.
2. Provides description, production, consumption, and visualization of restful web services.
3. It is a formal specification supported by a large set of tools. This collection covers everything from th ...
Posted by jcrocker on Tue, 21 Sep 2021 22:51:11 -0700
ELK installation test operation
ELK learning
1, What is it
Elasticsearch is an open source distributed search engine. Its features include: distributed, zero configuration, automatic discovery, automatic index fragmentation, index copy mechanism, restful style interface, multi data sources, automatic search load, etc.Logstash is a completely open source tool. It can collect ...
Posted by Francky683 on Tue, 21 Sep 2021 16:02:12 -0700
Introduction to Spring Boot Development -- Web services with Restful interface
Preface: content tips of this article
Create a Spring Boot based web project on Idea. When the client browser accesses the web service resources with get, put, post, etc., the server can make correct results. Install Postman software and test your web with Postman.
1, Create a Spring Boot based web project on IDEA
The specific steps ...
Posted by Rianna on Mon, 20 Sep 2021 21:09:19 -0700
Basic use of Elasticsearch
1. General
I talked about the installation of Elasticsearch before. Today, let's talk about the basic use of Elasticsearch.
two Use of Elasticsearch index
The index is equivalent to a table in mysql.
2.1 index creation
1) Head plug-in mode
Select the index tab, click [new index], enter the index name, number of slices and num ...
Posted by geo3d on Mon, 20 Sep 2021 19:17:26 -0700
Degraded configuration of OpenFeign
preface
When we need to call other microservices or third-party interfaces, we may use Dubbo or Spring's own component RestTemplate, but compared with the previous two, I prefer to use Feign, a component of Spring cloud. In my opinion, Feign is more flexible.
OpenFeign basic use
I'm too lazy to write a micro service myself. Here I sear ...
Posted by possiblyB9 on Mon, 20 Sep 2021 06:26:50 -0700
HttpClient introduction and simple use process
1.HttpClient
All calls between services in spring cloud use HttpClient. In addition, HttpClient is encapsulated in SolrJ. When calling the saveBean method of SolrTemplate, HttpClient technology is called.
At present, the exposed interface of most projects is Http request, and the data format is JSON format, but webService is still used in som ...
Posted by paulg on Mon, 20 Sep 2021 02:33:50 -0700
Java: an implementation principle summary and use example of reading annotations
Write before:
In the past, "XML" was the favorite of all major frameworks. It completed almost all the configurations in the framework in a loose coupling way. However, as the project became larger and larger, the content of "XML" became more and more complex and the maintenance cost became higher.
Therefore, someone propo ...
Posted by chapm4 on Fri, 17 Sep 2021 20:15:34 -0700
Crazy SpringCloud Notes 05 (Zuul and Config)
9.Zull Routing Gateway
Summary
What is zuul?
Zull contains two main functions: routing the request (for jumping) and filtering:
(The routing function is responsible for forwarding external requests to specific micro-service instances, which is the basis for achieving a unified entry for external access, while the filter function is re ...
Posted by andco on Sun, 12 Sep 2021 12:23:54 -0700
Spring boot integrates swagger gracefully
Import dependency
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox ...
Posted by Michael Lasky on Thu, 09 Sep 2021 15:06:36 -0700
[source code analysis and design pattern] 102021 is a significant year
The Adapter pattern converts the interface of a class into another interface that the customer wants. So that those classes that could not work together due to interface incompatibility can work together.
The adapter pattern has two different forms: class adapter and object adapter.
2, Structure of adapter mode
1. Target
Define a specific ...
Posted by andre_c on Mon, 06 Sep 2021 13:10:21 -0700