Elastic search -- Rest style operation index, mapping and document
Elastic search -- Rest style operation index, mapping and document
ElasticSearch provides a REST API that can be accessed through HTTP and JSON.
1. Index operation
1. Basic operations of index:
PUT /Index name Create index
DELETE /Index name delete index
DELETE /* Delete all indexes
GET /Index name View specified index i ...
Posted by MikeUK on Mon, 08 Nov 2021 12:32:41 +0100
2. RESTFUL Network Request Box Retrofit
Retrofit is a high-quality and efficient HTTP request library. Retrofit relies on OkHttp internally. It encapsulates the underlying code and details of OKHttp and extends functions such as auto-parsing data model for returning results, switching of network engines, interceptors...
restFul is a web API interface that conforms to the rest arc ...
Posted by WesPear on Sun, 31 Oct 2021 21:16:30 +0100
SpringBoot: how to gracefully pass parameters, encapsulate response data, and handle exceptions?
In project development, JSON format is used for data transmission between interfaces and between front and back ends.
1 fastjson usage
Alibaba's fastjson is currently the most widely used JSON parsing framework. This article will also use fastjson.
1.1 introducing dependencies
<dependency>
<groupId>com.alibaba</groupId> ...
Posted by Deadman2 on Mon, 25 Oct 2021 15:00:37 +0200
[1024 programmer's section] RestFul,mvc interceptor, SSM basic integration - learning notes
1. Spring MVC file upload
1.1 multi file upload
Multi file upload is similar to single file upload Steps:
Form: <form method="post" enctype="multipart/form-data">
<!--Provide multiple input,Multiple uploaded files can be selected-->
<input type="file" name="images" />
<input type="file" name="images" />
< ...
Posted by installer69 on Sun, 24 Oct 2021 05:26:38 +0200
Java - Spring MVC Framework Details
1. Comments on @RequestMapping
Add the @RequestMapping annotation before the method to process the request to configure the mapping relationship between the request path and the method to process the request!
In this note it is declared that:
@AliasFor("path")
String[] value() default {};
And:
@AliasFor("value")
String[] path() defaul ...
Posted by lettheflamesbegin on Tue, 19 Oct 2021 19:06:58 +0200
Savior for beginners - the simplest tutorial of SpringBoot 06:web development practice
Complete static resources
First find this class: webmvcoautoconfiguration. In this jar package, it is still auto configuration
There is an addResourceHandlers method in webmvcoautoconfiguration, which is used to automatically configure the static resource directory.
public void addResourceHandlers(ResourceHandlerRegistry registry) {
...
Posted by wih on Thu, 07 Oct 2021 05:08:17 +0200
Spring Boot implements common functions of the Web
Spring Boot implements common functions of the Web
Usually, in Web development, it involves the access support of static resources, the configuration of view parser, the customization of converter and formatter, file upload and download, and even the customization of Servlet related components associated with Web server. Spring Boot framework ...
Posted by rjs34 on Sun, 26 Sep 2021 12:43:51 +0200
Java 8 Improved Interface Abstract Class Enumeration Class
1.Basic syntax for defining interfaces:
[Modifier] interface Interface name extends Parent Interface 1, Parent Interface 2, ...
{
Definitions of zero to multiple constants...
Zero to more than one abstract method definition...
Zero to many internal classes, interfaces, enumeration definitions...
Zero to more than one default method or ...
Posted by simonp on Tue, 21 Sep 2021 18:01:48 +0200
Netty series: Handling CORS in netty
brief introduction
The full name of CORS is cross domain resource sharing. It is a mechanism based on HTTP header detection. By controlling HTTP header, the permission management function of cross domain resources can be realized. In the previous CORS detailed article, we have a basic explanation of CORS.
This article will explain how to ...
Posted by happyneil on Sat, 18 Sep 2021 05:51:38 +0200
Introduction to SpringBoot - > (personal learning notes)
1. Getting started
1.1 import dependency
All springboot projects must inherit spring boot starter parent
<!-- All springboot All projects must be inherited spring-boot-starter-parent -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
...
Posted by zander213 on Sat, 18 Sep 2021 04:08:53 +0200