Encapsulation of OkHttp (parameters are all submitted using Json)
OkHttp believes it's not unfamiliar. Android is a useful framework for web requests. GitHub has more than 2 weeks of Start s on it and Square is one of Jake Wharton's masterpieces (Jake Wharton left Square to join Google), where he worships God for three seconds...
I encapsulated OkHttp twice as needed for the project because, ...
Posted by KyleVA on Sat, 18 May 2019 09:54:33 +0200
Analysis of Exception Error Handling Mechanism in Springboot Series Spring Boot web Development
Preface
I'm sure you'll often encounter this page when you first start experiencing Springboot, which is the default return page to a page that doesn't exist.
Spring Boot Default Error Page
If it is a request from another client, such as an interface test tool, the JSON data is returned by default.
{
"timestamp":"20 ...
Posted by JsF on Sat, 18 May 2019 06:24:11 +0200
Rabbit Mq docker installation and springboot
A Brief Introduction to RabbitMQ Core Nouns
Publisher: Message Producer
Exchange: Exchange, which receives messages from producers and routes them to queues in servers based on the binding relationship between routing keys and queues
Exchange has four types: direct (default), fanout, topic, and headers:
diract: Perfect matc ...
Posted by werushka on Fri, 17 May 2019 13:56:17 +0200
tomcat, httpd log format description
tomcat log description
Configuration file server.xml
The default log format is
pattern="%h %l %u %t "%r" %s %b"
Recommended use
pattern="%{X-FORWARDED-FOR}i %l %u %t %r %s %b %D %{User-Agent}i"
The log output is as follows
192.168.3.14 - - [14/Dec/2017:17:56:05 +0800] GET /solr/admin/cores?_=1513245362283&indexInfo=false& ...
Posted by irn3rd on Fri, 17 May 2019 09:33:37 +0200
It's enough for JSON to get started with this article.
What is JSON
JSON: JavaScript Object Notation
JSON is a grammar for storing and exchanging text information. Similar to XML.
JSON adopts a text format completely independent of any programming language, making JSON an ideal data exchange language S
Why do you need JSON
When it comes to JSON, we should compare it with XML. XML is also a me ...
Posted by mo on Fri, 17 May 2019 04:22:47 +0200
Chapter 3 The first project of RN: Realization of network requests
Network requests are essential to our project development.A network request consists of a client-side code implementation or can be initiated directly from a js page.This chapter focuses on how to build a network architecture.
Android side
Architecture description: Use retrofit2 to implement network requests.This code is relat ...
Posted by sohdubom on Thu, 16 May 2019 00:56:46 +0200
Login function of Django
Checking of Check Agreement
I found that in the last article I forgot to check my agreement. Although there is no agreement, it still needs to be done.
Find the corresponding area in register.html:
<div class="form-group">
<label>
<input type="checkbox" name="aggree" value="1"> I agree to the agreement ...
Posted by AdB on Wed, 15 May 2019 12:52:00 +0200
Angular-Search Box and Price Limit
Angular-Search Box and Price Limit
Write a simple angular search box.
1. requirements:
Using Angular JS framework to realize mobile phone product search function, Title requirements: 1) Find the material by oneself and enrich the data of mobile phone products to at least 10 or more according to the original data format. 2) Self-designed pa ...
Posted by FrobinRobin on Wed, 15 May 2019 05:56:48 +0200
Front-end project file organization and component naming
Reason
In the process of developing a project, people are more or less doubtful about the catalogue structure of their own project, how to divide modules reasonably and how to name them reasonably. If these are not well regulated in the early stage of the project, then the newcomers will divide their catalogues again according to their own logi ...
Posted by stokie-rich on Wed, 15 May 2019 02:39:34 +0200
vue generates dynamic routing and navigation bar according to permission
Basic ideas:
1. Create vueRouter and instantiate it with common routing
2. Create routing objects that need to be filtered according to permissions (add necessary permission judgment fields to routing objects)
3. The login is completed and the backend cooperates to return the current user's privilege set.
4. Screen out the privi ...
Posted by raimis100 on Wed, 15 May 2019 00:16:21 +0200