When Java generic erasure encounters JSON serialization and deserialization

When Java generic type erasure encounters JSON serialization and deserialization preface -Recently, I saw Spring's source code implementation of RestTemplate and had some thoughts. Suddenly, I thought that I had handled such a scene before. This time, I sorted out an article and watered it all at once, ha ha. Ask questions first: If you ...

Added by mysoogal on Sun, 30 Jan 2022 09:14:47 +0200

Node.js basic notes~~~

Introduction - learn node The purpose of JS is to help you open the black box of the server. Only by understanding the server can we better cooperate with the server developers in collaborative development 1.1 review and reflection 1. Why can javaScript be executed in the browser? 2. Why can javaScript operate DOM and BOM 3. javaScript ...

Added by TempleDMDKrazd on Sun, 30 Jan 2022 01:45:40 +0200

Scala - Json parsing optimization

I introduction Use com.com in the work scenario alibaba. Fastjson encountered some time-consuming scenarios. Here are some time-consuming scenarios and simple optimization methods. II Storage form of Jason information The usage scenario is the most basic kv String combination. The loading location is the dirver part of Spark Program. The e ...

Added by gimzo on Thu, 27 Jan 2022 02:34:03 +0200

Query longitude and latitude according to address

1. Query longitude and latitude according to address 1.1. Gaode map It is recommended to use this. There are more free times per day and the concurrency is high public Map<String, Object> getLatAndLngByAddress(String addr) { String address = ""; try { address = java.net.URLEncoder.encode(addr,"UTF-8"); ...

Added by Rocu on Tue, 25 Jan 2022 05:41:30 +0200

SpringBoot sets the return field of Json to be non empty

preface You may have encountered the following problems. In the project development, the back-end returns data in Json format to the front-end, but for fields with empty data, null may appear, which makes the front-end students very painful. So they think, for those null fields, can the back-end return String data to empty String and int ...

Added by Shuriken1 on Mon, 24 Jan 2022 15:19:01 +0200

JSON learning notes - JSON you don't know

JSON learning notes - JSON you don't know What is JSON JSON is essentially a "data exchange format" With JSON, we can communicate with different systems Its goal is to complete data exchange JSON itself does not belong to any programming language, but a form of expression The full name of JSON is Javascript Object Notation (Jav ...

Added by mystrymaster on Sun, 23 Jan 2022 00:14:28 +0200

2022-1-18 spring MVC data echo and JSON processing

The data is staggered. If there is no echo, it needs to be filled in again. (AJAX does not have this problem. It needs to be handled if it is filled in with a form) 1, Manual data echo eg. a form page addstudent jsp <%-- Created by IntelliJ IDEA. User: 86133 Date: 2022/1/18 Time: 10:04 To change this template use File | Sett ...

Added by nigaki on Sat, 22 Jan 2022 20:05:58 +0200

Serialization and deserialization of python (json and pickle)

Serialization and deserialization of python (json and pickle) 1, What is serialization and deserialization 1. Serialization Convert a language variable into a json format stringThe data structure * * ---- > in memory is converted into an intermediate format (string) ----- > * * and saved in a file 2. Deserialization Convert json ...

Added by zushiba on Fri, 21 Jan 2022 19:48:40 +0200

Wechat applet development - dark horse Day4

Custom components Creation and reference of components Creation of components ① In the root directory of the project, right-click to create the components - > test folder ② Right click the new components - > test folder and click "new Component" ③ After entering the name of the component, press enter to automatically generate ...

Added by homchz on Fri, 21 Jan 2022 15:14:01 +0200

VUE learning notes (final)

13, Sending requests using Axios13.1 what is AxiosAxios is an open source asynchronous communication framework that can be used in browser and NodeJS. Its main function is to realize AJAX asynchronous communication. Its functional features are as follows:Create XMLHttpRequests from the browserFrom node JS create http requestPromise API supporte ...

Added by stuart7398 on Wed, 19 Jan 2022 11:20:17 +0200