Summary of java background request resuful and soap interfaces
1. Request restful interface
The request restful interface is divided into two types, depending on the type of interface request parameters published by the other side.
First, the parameter is of String type, which can be directly requested by httpClient post;
String url = "http://127.0.0.1:8480/jkcsYsd/test";
Http ...
Added by Theophilus on Sat, 04 Jan 2020 13:10:03 +0200
json walkthrough creating multi tier json objects or arrays
Today, I met a problem about classification, I want to use json for storage, but I haven't used it very much before, and I encountered a series of problems.
First, I will introduce some basic usage:
1. Definition of json var json = {}; / / json object, storing key value pairs
var json = [{}, {}] / / json array
2. The key va ...
Added by bsgrules on Sat, 04 Jan 2020 04:32:10 +0200
Wechat chat robot
preparation:
Install itchat: install command pip install itchat
1. Import the itchat module and send a message to the file transfer assistant
import itchat
itchat.auto_login(hotReload=True)
itchat.send("Hello, file transfer assistant",toUserName='filehelper')
Run the code, scan the QR code, that is, log in the wechat page version, and automat ...
Added by blear on Sat, 04 Jan 2020 02:55:05 +0200
How to receive Json data by MVC
public class DemoModel
{
public string Name { get; set; }
public int Age { get; set; }
}
[HttpPost]
public ActionResult About(DemoModel model)
{
return Json(model);
}
[HttpPost]
public ActionResult About(string Name, int Age)
{
return Json(model);
}
See if this code is very familiar. It's commonl ...
Added by Batosi on Fri, 03 Jan 2020 19:08:42 +0200
Native JS carousel
Native JS carousel
Today write a native JS write carousel JS effect.
Implementation principle:
1. Create an array to write the corresponding z-index, opacity, top, width for each picture;
2. The operation to realize rotation is to put the first group of values in the built array into the last group, and click the button to execute once.
Display ...
Added by PHPnewby! on Fri, 03 Jan 2020 17:53:24 +0200
New authorization method of wechat applet to obtain user information
Absrtact: the access user interface of the applet has been changed from automatic pop-up window to active pop-up window. Although it improves the user experience, it has one more step to guide the user to authorize. What has been launched will not be affected, but it will be affected if it is launched again, so record the process.
Technologica ...
Added by l053r on Fri, 03 Jan 2020 12:55:13 +0200
Baidu eCharts learning notes
Baidu eCharts dynamic data binding summary
Using steps
Code demo
Effect display
Using steps
(1) js plug-in of eCharts (eCharts single file introduction)
There are several ways to introduce the js plug-in of eCharts:
a. directly introduce js plug-in of Baidu ecrats
<script src=" ...
Added by nivosh on Thu, 02 Jan 2020 22:44:43 +0200
mongodb read write separation and java side
mongod.exe --bind_ip 192.168.1.202 --port 50001 --logpath E:\MongoDB\logs\log.txt --logappend --dbpath E:\MongoDB\data\db --replSet zhangwei
mongod.exe --bind_ip 192.168.1.202 --port 50002 --logpath E:\MongoDB\logs\log1.txt --logappend --dbpath E:\MongoDB\data\db1 --replSet zhangwei
mongod.exe --bind_ip 192.168.1.202 --port 50 ...
Added by borabora12 on Thu, 02 Jan 2020 10:55:07 +0200
Android notes: Android devices get public IP
Today, I have a friend who wants to get the current ip of Android phone connected to the network and ask me how to do it. I think it's not easy. Tell him to judge the network environment first. If WiFi can be obtained through WiFi manager, if it is traffic (2G, 3G or 4G network), get getHostAddress() through NetworkInterface tr ...
Added by jossejf on Wed, 01 Jan 2020 20:06:40 +0200
Building a private warehouse with docker container
1, About registry
2, Set up a registry
1. Download the registry image
2. Start the container
3. Solve the problem of push ssl
4. Upload image
5. View all image information in the Registry
1, About registry
The official Dockerhub is a good place to manage the public image. We can find the image we want on it or pu ...
Added by RaheimSG on Tue, 31 Dec 2019 23:37:10 +0200