Log4j2 configuration file log4j2.xml
1. Background
Recently, due to the needs of the project, we have migrated all versions of log4j 1.x to the version of log4j 2.x, and the subsequent slf4j integration log4j configuration (the perfect solution for building a project log system using Slf4j integration Log4j2) and log4j2 configuration file details require a good chat.This article i ...
Added by reethu on Tue, 03 Sep 2019 04:49:48 +0300
SpringBoot uploads files to FastDFS
1. What is FastDFS
FastDFS is an open source, lightweight, distributed file system that solves the problems of large data storage and load balancing. It is especially suitable for online services with small and medium files (recommended range: 4 KB < file_size < 500 MB), such as photo album websites, video websites, etc.
FastDFS is dev ...
Added by daniel244rock on Mon, 02 Sep 2019 05:53:40 +0300
python Advanced Programming-Network Programming
TCP and Concurrent Server
Unlike UDP, it is a connection-oriented, reliable data transmission protocol.
TCP Communication is Complicated
Write a TCP server first. The general steps are as follows:
1. The first step is to create a socket socket: socket()
2. Servers usually need a fixed IP address and a fixed port number. Servers need to bin ...
Added by HIV on Fri, 30 Aug 2019 11:50:16 +0300
python's yaml module
Catalog
1. Introduction of yaml file
1. yaml File Rules
2. yaml file data structure
2. python reads yaml configuration file
1. Prerequisites
2. Read yaml file data
3. yaml file data is a key-value pair
4. yaml file data is an array
5. Ba ...
Added by writer on Thu, 29 Aug 2019 04:56:06 +0300
Feign httpclient file upload problem record
Problem statement
The original project http request is completed through feign + ribbon + urlconnection. Considering the network and cpu overhead caused by frequent connection release of urlconnection, http client is used as the connection pool. Upgraded, it is found that there are problems of calling downstream service code and tampering with ...
Added by watthehell on Wed, 28 Aug 2019 17:57:40 +0300
Binarization methods commonly used in video coding
In video coding, before arithmetic coding, we need to binarize the symbols that need to be transmitted. Today we will learn some common binarization methods.
Common binary coding algorithms are: Uniary code, truncated Uniary code, truncated Rice bina ...
Added by mrjameer on Wed, 28 Aug 2019 11:30:15 +0300
Request Request Request Basic Knowledge
The actual behavior of the Tomcat server:
Because: Enter in the browser's address bar: localhost:8080/ProjectName / resource path
Where the resource path:
It's the resource path in @WebServlet("/demo3")
1. Through this path, the class poi ...
Added by enlight on Wed, 28 Aug 2019 06:39:21 +0300
web crawler explanation - urllib repository crawler - basic use - timeout settings - Automatic Simulation of http requests
Writing simple crawlers using the urllib library that comes with the python system
urlopen() Gets the html source for a URLread() Read the html source contentdecode("utf-8") converts bytes to strings
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import urllib.request
html = urllib.request.urlopen('http://edu.51cto.com/course/8360.html ...
Added by Rushy on Wed, 28 Aug 2019 02:13:02 +0300
web crawler, requests request
Requests request is to simulate a browser request with python's requests module and return html source code
There are two types of simulated browser requests, one that does not require user login or authentication, and the other that requires user login or authentication.
1. Requests that do not require user login or authentication
This is a s ...
Added by abduljan on Tue, 27 Aug 2019 00:16:58 +0300
python-generator, derivation, recursion
Catalog
1 Generator (Variation of Function)
2 Derivative Formula
3 Recursion
1 Generator (Variation of Function)
Judging whether a function is a generator function: Just see if there is yield inside the function
# Generator function (whether yield is included in it)
def func():
print('F1')
y ...
Added by waradmin on Mon, 26 Aug 2019 16:55:36 +0300