How to Use websocket to Realize Front-end and Back-end Communication

websocket communication is a very interesting and useful way of communication. The ways of using it are as follows:   The first step is to introduce dependencies in the pom.xml file because spring boot integrates websocket well. <dependency> <groupId>org.springframework.boot</groupId> <artifac ...

Posted by ILYAS415 on Sat, 05 Oct 2019 22:44:57 -0700

python crawler-Tao translation-js encryption cracking

Dow Translation-js Encryption Cracking This is a locally crawled website: http://fanyi.youdao.com/ I. Analysis Request We input the fruit in the page: the English after translation is fruit. There are many parameters in the request. First, save the parameter data and make a record. Let's enter a new word: watermelon. i: watermelon from: AUTO t ...

Posted by spitfire_esquive on Sat, 05 Oct 2019 07:04:58 -0700

Implementation of message push based on Tomcat 8 in websocket

To implement back-end push to front-end messages, the old practice is front-end polling, which is not done now. Now using websocket to implement, there are many APIs to implement websocket, which are based on Tomcat 8. 1. Build a new spring boot project first. 2. Create a new config class /** * @author smy */ @Configuration public class ...

Posted by swr on Sat, 05 Oct 2019 05:38:50 -0700

The Django project uses qq q third party login.

The premise of using qqq login is to create website application on QQ interconnected official website and obtain APP ID and APP KEY of website application in QQ interconnection. 1. Routing # qq Sign in path('loginQq/',qq.loginQq,name='loginQq/'), path('returns/',qq.returns,name='returns/'), 2. The front page writes the link ...

Posted by Avendium on Fri, 04 Oct 2019 19:52:58 -0700

Spring Boot Vue Element Start-up Practical Registry Routing Cross-domain Interception

This blog is originally created by the author. It is forbidden to reprint without permission. Please respect the originality! If you have any questions, please contact QQ509961766. (1) Improving routing Create the above page, then configure the routing in index.js, and add the routing interception ...

Posted by hughesa on Fri, 04 Oct 2019 18:09:57 -0700

Zookeeper Source Code Analysis and Connection Establishment - Service End Chapter

In this article, we will analyze the source code of the server when zookeeper establishes the connection. Here we skip the process of the server startup (because it contains too much content, one article can not finish), and look directly at the code of the server to process the request. There are two kinds of NIOServer CnxnFactory and Netty Se ...

Posted by tekparasite on Fri, 04 Oct 2019 15:57:01 -0700

Three-step implementation widget first opens the prompt "add to my widget"

I use Taro framework to develop, so this example also takes Taro code as an example, if you use small program language, uni-app and other frameworks, do not worry, because the principle is the same. First, understand the design principle. The key to the problem is "how to judge the first opening". There are two ways: 1. After opening ...

Posted by julius_h on Wed, 02 Oct 2019 19:06:01 -0700

Analysis of CSSE1001/7030 Course of Queensland University

Analysis of lesson CSSE1001/7030Title:Fill in the model class of leepCoders with Python languageAnalysis:Fill in the classes in the code template according to the class relations and functions of the documentCard: Card categoryplay(self, player: Player, game: a2_support.CodersGame): when the player is playing cards, he will discard his cards an ...

Posted by T.Stedel on Wed, 02 Oct 2019 16:16:45 -0700

ExtJs 4.2 Application: Using ExtJs Extension Component searchfield to Realize Data Search Function

Links to the original text: https://my.oschina.net/qiuzhping/blog/611700 ExtJs 4.2 Application: Extending component search field with ExtJs Implementing Data Search Function 1. Int ...

Posted by jonathandg on Wed, 02 Oct 2019 12:37:45 -0700

Spring cloud micro-service single sign-on based on redis cluster

yls2019-9-23 brief introduction This paper introduces how to implement single sign-on function in micro-service architecture. Create three services: Services that operate redis clusters for sharing data among multiple services Unified Authentication Center Service for Unified Login Authentication of the Whole System Service consumers for te ...

Posted by Rommeo on Wed, 02 Oct 2019 04:52:49 -0700