Chapter 4 request and response
Browser access Servlet process:
HttpServletResponse object: It inherits from the ServletResponse interface and is specially used to encapsulate HTTP response messages. It defines the method of sending response status code, response message header and response message body to the client.
Methods related to sending status codes include: 1. set ...
Posted by freynolds on Tue, 16 Nov 2021 01:11:34 -0800
Use an ingress controller to get through the dubbo+k8s network
backgroundSince all services in the company run on Alibaba cloud k8s, and the IP reported to the registry by dubbo provider is Pod IP by default, this means that dubbo services cannot be called in the network environment outside the k8s cluster. If local development needs to access dubbo provider services in k8s, it is necessary to manually exp ...
Posted by Lol5916 on Tue, 16 Nov 2021 01:06:16 -0800
Six methods to completely solve Flink Table & SQL dimension table Join
With the development of Flink table & SQL, dimension table Join in Flink SQL has become the choice for many scenarios.Based on the previous summary, the implementation of dimension table Join in Flink table & SQL is summarized again, including dimension table Join in DataStream.Regularly load dimension dataDistributed cacheAsync IOBroad ...
Posted by amitshah on Tue, 16 Nov 2021 00:58:11 -0800
Build two-dimensional laser SLAM from scratch -- code implementation of back-end optimization based on ceres
In the last article, we analyzed how to use G 2O to optimize the pose map
Because g2o naturally optimizes the pose graph, it is very suitable for the interface of karto's pose graph. It only needs to assign the corresponding vertices and constraints respectively
In this article, let's take a look at another commonly used optimization library ...
Posted by melrse on Tue, 16 Nov 2021 00:40:44 -0800
7, Web component injection
7, Web component injection
1. Web native component injection (Servlet, Filter, Listener)
Method 1: use @ ServletComponentScan + web3.0 annotation
Add the ServletComponentScan("") annotation on the main startup class of MainApplicationContext @ServletComponentScan("day01.view")
@SpringBootApplication
public class MainApplication ...
Posted by samUK on Tue, 16 Nov 2021 00:23:54 -0800
Balanced match source code analysis
Balanced match source code analysis
text
0. Basic information
0.1 Usage
The goal of the balanced match library is very simple: match the first pair of strings that meet the conditions, and disassemble them into three parts: front, middle and back
0.2 Version: v2.0.0
This library is relatively stable, and there is nothing to change
Th ...
Posted by mikebr on Tue, 16 Nov 2021 00:22:34 -0800
Thoroughly understand the principle of Spring state machine and realize the decoupling of order and logistics
This article is excerpted from "design patterns should be learned this way"1 UML class diagram of state patternThe UML class diagram of the state pattern is shown in the figure below.2. Use the status mode to realize the free switching of login statusWhen we read articles in the community, if we think the articles are well written, we ...
Posted by LucidParody on Tue, 16 Nov 2021 00:17:19 -0800
Integration of structural knowledge points (Part 1)
Integration of structural knowledge points (Part 1)
Structural knowledge points (previous part)
(1) Declaration of structure type (2) Definition and reference of structure variables (3) Solution of structure size (4) Initialization of structure type (5) Definition and initialization of structure array
So why do you need a structure? Struct ...
Posted by moose4204l on Tue, 16 Nov 2021 00:13:31 -0800
Python makes mosaic images
Python makes mosaic images
200 lines of Python code complete the script for generating mosaic pictures
Knowledge points
What is RGBHSV color spacePython BasicsIncluding the use of the pilot libraryUse of multiprocessing LibraryPrinciple of making mosaic image
effect:
You can generate pictures similar to the following:
After zooming ...
Posted by mattonline on Mon, 15 Nov 2021 23:58:41 -0800
Explain json data in spreadsheets: serialization and deserialization
From XML to JSON
Under the common B/S architecture of current application development, we will encounter many scenarios requiring front and rear data transmission. In the process of this transmission, the format of data transmission, whether the method is fast and convenient, and whether the writing method is simple and easy to learn have beco ...
Posted by beta0x64 on Mon, 15 Nov 2021 23:43:59 -0800