1. The Creation of Containers

By quickly building a spring-based web application with idea, we can start with the spring listener in web.xml 1.1 context Creation When tomcat starts a webapp application, it uses multithreading to call the start method of StandardContext, and when StandarContext starts, it calls the listener that im ...

Posted on Sat, 03 Aug 2019 23:57:08 -0700 by acidglitter

Python polling, long polling, websocket

Links to the original text: https://www.jianshu.com/u/8f2987e2f9fb polling ajax polling, ajax polling principle is very simple, let the browser every few seconds to send a request, ask the server whether there is new information. 1. Backen ...

Posted on Sat, 03 Aug 2019 01:01:29 -0700 by zilem

IM Client with High Performance Based on protobuf Protocol

The content and knowledge of using protobuf protocol to interact with server data are recorded here.It involves basic computer knowledge, such as bytes, buffer buffers, size terminals, etc. Byte/Byte 1 byte represents 8 bit binary, 1 bit is 0 or 1, which is also the smallest unit of computer. Uint and Int Int is a signed integer, and Uint is ...

Posted on Fri, 02 Aug 2019 22:19:06 -0700 by Bobulous

Asynchronous transformation of dubbo source parsing

2.7 Revealing --- Asynchronous transformation Target: Analyze the rationale for asynchronization in 2.7's new features from a source code perspective. Preface There are many types of protocols available in dubbo, and a series of protocols can be found in the following articles: dubbo Source Resolution (24) Remote Call - dubbo Protocol dubbo So ...

Posted on Fri, 02 Aug 2019 19:12:57 -0700 by berrberr

Build Springboot+JPA+Swagger 2.0+Logback+Lombok+Redis+Shiro 1.4 Project with IDEA from scratch

Build Springboot+JPA+Swagger 2.0+Logback+Lombok+Redis+Shiro 1.4 Project with IDEA from scratch (7) Springboot integrates Shiro 1.4 What is Shiro Add pom.xml dependencies Configure Shiro related files ShiroConfig configuration file Custom Realm File Exception handling configuration file Modify the ...

Posted on Thu, 01 Aug 2019 00:45:17 -0700 by fer0an

Session concept and its basic use & the difference between cookie and session

session 1. Concept Translation into Chinese is a session - > the server is used to identify the unique identity of the user, and the underlying is actually implemented with cookie s. Each browser accessing the server creates a unique session Id that does not duplicate. 2. Get session Id Different bro ...

Posted on Wed, 31 Jul 2019 22:40:19 -0700 by frijole

Java AOP Logging

Some Terms about Spring AOP Aspect: In Spring AOP, facets can be implemented using generic classes or in common classes with @AspectJ annotations (@AspectJ style) Joinpoint: In Spring AOP, a join point represents the execution of a method Advice: An action performed on a particular Joinpoint of a ...

Posted on Tue, 30 Jul 2019 04:43:22 -0700 by amberb617

Working Principle of Spring Session

This article was first published on vivo Internet Technology Wechat Public Number https://mp.weixin.qq.com/s/KCOFv0nRuymkX79-RZi9eg Author: Zhang Zhenglin HTTP protocol itself is stateless. In order to save session information, browser Cookie identifies session request through Session ID, and server stores session information with Session ...

Posted on Mon, 29 Jul 2019 19:56:10 -0700 by cashflowtips

openCamera Module of Android Camera Principle

We usually develop, know how to schedule the api, how to set up the camera, how to call the instance of camera to operate the camera, but what has been done behind these schedules, we may not be very clear. This article intends to start with the call of openCamera, and expand on how the bottom layer works after the camera is raised. ? The four ...

Posted on Tue, 23 Jul 2019 08:51:58 -0700 by afhouston

Web Socket Creates Simple Chat Room

webSocket Some configurations Brief description of information exchange process Need dependence Developing with annotations Establish a connection Realize broadcasting Client delivers information to server Server receives client information Environmental Science: spring4.0 jdk1.8 Some config ...

Posted on Tue, 23 Jul 2019 02:14:42 -0700 by imaprogramur