The back end transmits Long type data to the front end and the precision is lost

Bug site: When the back end transmits the Long type order number data to the front end, there is a problem of precision loss, as follows Back end console: Front end browser:   reason: When js gets the long type returned by the backend, there will be data loss JS has a built-in 32-bit integer, while the number type security integer i ...

Posted on Fri, 15 May 2020 10:39:58 -0400 by kester

The back end transmits Long type data to the front end and the precision is lost

Bug site: When the back end transmits the Long type order number data to the front end, there is a problem of precision loss, as follows Back end console: Front end browser:   reason: When js gets the long type returned by the backend, there will be data loss JS has a built-in 32-bit integer, while the number type security integer i ...

Posted on Fri, 15 May 2020 10:40:24 -0400 by jayR

search (13) - elastic4s histograms: aggregate histogram

In aggregate group statistics, we will face two types of group elements: continuous type such as time, natural number, discrete type such as location, product, etc. Discrete data itself represents different groups, but continuous data needs to be manually segmented at equal intervals. Here is an example of aggregation by price segment: POST /c ...

Posted on Fri, 15 May 2020 10:15:27 -0400 by carrotcake1029

Notes on writing ssm project

catalog matters needing attention: Output station scrambling a link submitted as post Form validation before submission Confirm before jump c:if judgment jsr303 validation form Ajax shiro shiro comments Tags used by Shiro in jsp shiro uses Date conversion json garbled Reset button Path jump problem: PageHelper use matters needing attent ...

Posted on Fri, 15 May 2020 01:44:37 -0400 by hchsk

Getting Started with Druid 0.17 - A Complete Data Query Style

This article describes how Druid queries data. First, we ensure that the data has been loaded successfully. Druid queries are based on HTTP, and Druid provides a query view and formats the results. Druid provides three query modes, SQL, native JSON, CURL. 1. SQL Query Let's use wiki's data as an example Query the top 10 page edits SELECT page, ...

Posted on Thu, 14 May 2020 22:59:14 -0400 by amorphous

Spring Manual Scan Package Path and Get Bean Instances Outside Containers

Recent projects have a requirement that the Controller under the specified package be open for calls to other applications, but that its license be validated. Solution: Define a Filter that scans all Controller s under the specified package within the init initialization method to generate an open set of URL s; check t ...

Posted on Thu, 14 May 2020 12:39:31 -0400 by jcanker

Example of Echarts line chart

There are three steps to using the eharts chart.The first step is to create two js files.One to format the chart and one to render the data using ajax. First step, create a js file to format the chart /*Format*/ var configuration_option = { tooltip: { formatter:'{a0}: {c0}'+'Viruses' }, color: [], legend: { ...

Posted on Thu, 14 May 2020 12:25:01 -0400 by gc40

Attachment 018.K3S-ETCD high availability deployment

I. overview of K3S 1.1 introduction to K3S K3S is a lightweight Kubernetes distribution. Easy to install, low memory consumption, all binaries less than 40 MB. For: Edge computing edge Internet of things IoT CI ARM 1.2 characteristics of K3S k3s is a fully compatible Kubernetes release with the following changes: Remove obso ...

Posted on Wed, 13 May 2020 21:55:51 -0400 by k994519

Using AutoFac in WebApi

Using AutoFac in WebApi (I) The previous article said how to use AutoFac, but there is still a problem: when an interface has multiple implementation classes, how to distinguish the implementation classes? There are many solutions, such as named < T > and so on, but they all need to register separately. If it is less, it will be a bit tro ...

Posted on Wed, 13 May 2020 10:18:58 -0400 by FrozNic

Python crawler project for boys only: crawling through today's headlines

You haven't climbed the headlines since 2020. Do you look OUT when you are a reptile? But it's OK. Although the current interface has changed, I'll talk about how to make today's headlines in 2020. This is an improved project, which has participated in many of my own ideas. For example, some of them are very difficult to understand. I have impl ...

Posted on Wed, 13 May 2020 05:48:03 -0400 by r2ks