The first harvest and thought of reading AFNetworking source code
Source address:
https://github.com/AFNetworking/AFNetworking/tree/0.2.1
First, add the corresponding library to your Demo, set the MRC and set the new syntax according to the prompts, so that the project can run:
Including support for HTTP:
1. Add NSAppTransportSecurity type Dictionary in Info.plist;
2. Under NSAppTransportSecurity, add nsallow ...
Posted by crazylegseddie on Sun, 03 Nov 2019 14:09:22 -0800
Spring MVC (abstractcontroller, interceptor, annotation)
1.Controller interface and its implementation class Controller is a controller / processor interface, with only one method handleRequest, which is used to process the function of the request (function processing method). After processing the request, it returns the ModelAndView object (Model data part and View view View part). If you want to wr ...
Posted by rick007 on Sun, 03 Nov 2019 03:49:11 -0800
Flash, middleware
Catalog
Flash
Source code
case
middleware
Custom local Middleware
Custom global decorator
Flash
Flash() provides a very useful flash() function, which can be used to "flash" messages that need to be prompted to the user, such as "welcome back!" when ...
Posted by cvsherri on Sat, 02 Nov 2019 16:28:48 -0700
Technology sharing | MySQL's join | buffer | size application on internal connection
Author: Yang Taotao
This article introduces the use of MySQL parameter join ﹣ BUFFER ﹣ size in the INNER JOIN scenario, which is not included in OUTER JOIN. Before discussing the BUFFER, let's first understand the INNER JOIN classification of MySQL.
If it is subdivided according to the retrieval performance, whether it is two or more inner jo ...
Posted by deckrdx on Sat, 02 Nov 2019 08:03:18 -0700
Shiro permission management framework: in-depth analysis of Session management in Shiro
In fact, some of Shiro's learning notes should have been written for a long time, because the late stage of lazy cancer and procrastination has not been implemented. Until today, a project of the company encountered the problem of frequent disconnection of single sign on in the cluster environment. In order to solve this problem, Shiro's releva ...
Posted by CBR on Sat, 02 Nov 2019 05:22:57 -0700
How to implement session in php, how to implement session in itself, and how to implement session in laravel
1. How to implement session in php
Execute the PHP script, session_start() will read the configuration item from php.ini, and put the generated unique value sessionID save file to the save path and location in the configuration item. And return the response header setCookie through HTTP protocolCookie name = cookie value sent to client.
The cli ...
Posted by Mchl on Sat, 02 Nov 2019 03:03:47 -0700
Using Alibaba cloud TTS to realize web voice broadcast
I. opening Alibaba cloud TTS service
Log in to Alibaba cloud and choose product - > Artificial Intelligence - > speech synthesis
Click "apply for opening" and create a project in "management console"
Copy token and appkey
II. Interface with speech synthesis api
View ...
Posted by ashbai on Sat, 02 Nov 2019 02:14:18 -0700
Flash develops restful api
The standard restful api http request methods are as follows:,
Get: get list
Get < int: ID >: get a single data record
post: add data
put: modify data
Delete: delete data
Related view processing code
from flask import jsonify,request
from app.api import api
from app.models.article import Article
##Page to get all lists
@api.r ...
Posted by Jas on Fri, 01 Nov 2019 19:11:44 -0700
pring boot integrates redis to realize shiro's distributed session sharing
As we know, shiro manages sessions through Session manager, while Session operations are implemented through SessionDao. By default, shiro implements two kinds of SessionDao: cacheingsessiondao and MemorySessionDAO. When we use EhCache caching, we use cacheingsessiondao. When we do not use caching, we choose internal based caching Therefore, if ...
Posted by paschim on Fri, 01 Nov 2019 11:21:02 -0700
MyBatis source code analysis
Phase source code details:
Through a simple demo for single step debugging, it is convenient to have a deep understanding of each step of Mybatis. The example is as follows:
public class MybatisLearn {
public static void main(String[] args) throws IOException {
String resource = "mybatis-config.xml";
InputStream inputSt ...
Posted by buck2bcr on Wed, 30 Oct 2019 08:51:49 -0700