Annotation-based AOP logging

brief introduction Some time ago, when I read the code I wrote, I found that there were a lot of cumbersome log records, which affected the impression. Later maintenance was also very troublesome. I decided to solve this problem through AOP, first record. Dependency packages needed for integration with SpringBook framework <dependency& ...

Posted on Wed, 09 Oct 2019 15:32:29 -0400 by dspeer

Request libraries crawl and hook, session() implements cookie sharing, and list index out of range error resolution

I met many problems and finally succeeded in every attempt. At first, I didn't realize that the cookie s in the pull-off network were changing and could not crawl normally. Search data found that session can share information, which crawled to a point of normal information. Half of the crawled pages app ...

Posted on Wed, 09 Oct 2019 15:13:22 -0400 by dodgeqwe

Use Go Read-Write Request

brief introduction Read request parameters Parameters in path Parameters in query Parameters in from Model binding Return response summary The current part of the code brief introduction With a web framework, the most basic thing is to read and write requests.Gin supports many kinds of request parameters and also supports multiple formats ...

Posted on Wed, 09 Oct 2019 13:26:49 -0400 by zoidberg

Angular internationalization scheme: ngx-translate

Design sketch: Step 1. Installation dependencies npm install @ngx-translate/core @ngx-translate/http-loader rxjs --save @ ngx-translate/core contains the core program for translation: TranslateService and some pipelines. @ ngx-translate/http-loader loads translation files from network servers Step 2. Initialize TranslateModule in app.module.ts: ...

Posted on Wed, 09 Oct 2019 13:17:23 -0400 by kcarroll

A Simple Packaging of AbbitMQ Client Based on Python Pika Library

Code Reference resources Be careful Code Github Address: https://github.com/HanseyLee/RabbitMQClient #!/usr/bin/python # -*- coding:utf-8 -*- import pika import hashlib import json def getMd5(input_str): """ :param str input_str: Unicode-objects must be encoded before hashing :rtype: ...

Posted on Wed, 09 Oct 2019 13:09:52 -0400 by Nixon

Front-end and back-end students need to master the technical documentation (or blog) building

When you finish writing an open source project or a blog post, do you want to have a page to present it? As shown in the picture: Let's get started. Build with vuepress vuepress official website Installation and operation 1. Using Yarn and npm, Node.js version >= 8. npm install -g vuepress 2. Create project directories mkdir demo cd demo 3. ...

Posted on Wed, 09 Oct 2019 07:10:24 -0400 by ritter

Payloload Data Transfer and Ctrip Ticket Checking Interface

payload in network message Usually when transmitting data, in order to make the data transmission more reliable, the original data should be transmitted in batches, and some auxiliary information should be added to the head and tail of each batch of data, such as the size of data volume, check bits, e ...

Posted on Wed, 09 Oct 2019 06:37:09 -0400 by djjjozsi

Webpack and webpack-dev-server crowds problem

Error reporting information: peerDependencies WARNING webpack-dev-server@^2.9.7 requires a peer of webpack@^2.2.0 || ^3.0.0 but webpack@4.39.1 was installed peerDependencies WARNING webpack-dev-server@2.11.5 › webpack-dev-middleware@1.12.2 requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but we ...

Posted on Wed, 09 Oct 2019 05:21:25 -0400 by leonglass

Spring Security logs in using JSON

If you want to transfer the username password through JSON, you need to customize the relevant filter. By analyzing the source code, we find that the default username password is extracted in the Username Password Authentication Filter filter. Some of the source codes are as follows: public class Us ...

Posted on Tue, 08 Oct 2019 23:12:26 -0400 by mlai4167

VUE -- Reconstructing the shuttle box using table tables in ElementUI

Preface First, take a look at the example of the shuttle box given by ElementUI's official website. This shuttle box does not meet the requirements of its own project, because when the left is selected to the right, the content on the left is no longer available. I. demand After adding the sele ...

Posted on Tue, 08 Oct 2019 21:38:56 -0400 by xsist10