Various problems of configuring json in spinning
What I built is that springboot is version 4.x, which sometimes brings a lot of problems
Question 1
In the beginning, when we used the lower version, we configured json to return
<!--<!– https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl –>
<dependency>
...
Added by p0pb0b on Thu, 05 Dec 2019 09:57:36 +0200
Sass / SCSS swiper iscoll REM agax elastic box
I. sass/scss
ruby language
1.scss variable
$w:300px;$h:235px;
.mm{width:$w;height:$h;}
2.sass Nested writing of:
.header{ height:200px;
h1{font-size:18px}
}
II. swiper.js
Wheel planting
1. Load the swiper.min.css style file on the page
2. Load the file swiper.min.js
3. Write html structure
<div class="swiper-contain ...
Added by Genesis730 on Thu, 05 Dec 2019 00:14:21 +0200
QQ authorized login based on php
Step one:
First log in QQ Internet Homepage https://connect.qq.com/ Conduct personal / business certification. The audit time is about one week.
Create an application after the certification:
The APP ID and APP Key parameters of the application are mainly used here.
To fill in the callback address is to request the qq interface to get the cod ...
Added by Phairest on Wed, 04 Dec 2019 22:45:23 +0200
Priority of and or query in MySQL
This may be a problem that is easy to be ignored. First, we need to be clear:In MySQL, AND takes precedence over OR. That is to say, without the limitation of parentheses (), the AND statement is always executed first AND then the OR statement.For example:
select * from table where condition1 and condition2 or condition3
Equivalent to
select ...
Added by Wright on Wed, 04 Dec 2019 03:17:23 +0200
Socialist core values, desktop mouse click effect
By cherry, the author of the oil monkey "Webpage mouse click effect" Inspired, so slightly modified and produced, completed the desktop mouse click effect of Steam Wallpaper Engine version.
Steam link: https://steamcommunity.com/sharedfiles/filedetails/?id=1609057588
The completion effect is as follows:
Since the orig ...
Added by konigwolf on Wed, 04 Dec 2019 00:17:13 +0200
59 tool classes commonly used in the front end [continuous update]
Preface
Sometimes the front-end development will process some data returned from the background, or do some processing according to the data judgment; at this time, it is very necessary to encapsulate some common tool classes; This paper encapsulates 59 methods according to some commonly used tool classes, of course, there are many less used ...
Added by racerxfactor on Tue, 03 Dec 2019 23:07:38 +0200
Implementation of Token authentication mechanism based on jsonwebtoken in egg
Json web token (JWT) is a JSON based development standard (RFC 7519) which is implemented for the purpose of passing statements between network application environments. The token is designed to be compact and secure, especially suitable for SSO scenarios of distributed sites. JWT declaration is generally used to transfer the authenticated user ...
Added by smalband on Tue, 03 Dec 2019 21:29:16 +0200
Download pictures online or LAN and report the error locally
I. download pictures online
import os
import sys
import xlrd
import requests
import urllib.request
def read_excel(excel_path):
workbook = xlrd.open_workbook(excel_path)
sheet = workbook.sheet_by_name("Sheet1")
nrows = sheet.nrows
img_list = []
for i in range(nrows):
img_list.append(sheet.row_valu ...
Added by Haggen on Tue, 03 Dec 2019 08:53:11 +0200
Safety design of php interface
Safety design of php interface
The security of the interface is mainly designed around the three mechanisms of Token, Timestamp and ign, which ensure that the data of the interface will not be tampered with and called repeatedly. The following is specific:
(1)Token authorization mechanism: (Token is the credential of the client to access the ...
Added by Opv on Mon, 02 Dec 2019 16:28:56 +0200
javascript's research on deep copy objects
For deep copy, the concept of shallow copy is not much said, the concept can be Baidu yo! Here are some research on deep copy objects!
Only deep copy of value type data
For data objects with only values, the following line is enough!
JSON.parse(JSON.stringify(obj))
A simple, unstructured, deep copy
function clone(source) {
var target = {};
...
Added by insight on Mon, 02 Dec 2019 11:57:50 +0200