Add log4j2 to the Web Project

To add log4j to the existing engineering code and record the log information without destroying the original code structure, we need to download the package on the official website first. I downloaded apache-log4j-2.12.0-bin, download address: https://logging.apache.org/log4j/2.x/download.html 1. Fi ...

Added by cljones81 on Wed, 31 Jul 2019 09:39:34 +0300

spring AOP -- implemented by annotations

spring AOP - Implemented by Annotation Catalog Explain Configure applicationContext.xml Face class MyAspect.java Custom Annotation @Method summary Catalog Explain This example is not a web project. Configure applicationContext.xml Configuration file, code slice. <?xml version="1.0" enco ...

Added by AnAmericanGunner on Wed, 31 Jul 2019 07:38:04 +0300

Spring Security OAuth2 requests to carry client information verification, custom exception return, no right to handle, token failure handling

Above address: Spring Security OAuth 2 (1) (password,authorization_code,refresh_token,client_credentials) gets token The last blog wrote a simple token authentication server of OAuth2, which only implements four ways to acquire token. It does not deal with exception handling, unauthorized handling, data integrity checking before token generatio ...

Added by pleisar on Wed, 31 Jul 2019 06:39:51 +0300

PHP traverses folders and compresses downloads according to filtering results

Requirements: Files and folders under the specified path are filtered out and packaged for download. Note: The mvc structure of php can be downloaded by adding header header to the controller, but this method can not be used if the front-end Ajax request interface is used, because both json data and ...

Added by mattotto77 on Tue, 30 Jul 2019 22:45:42 +0300

Polymorphism of Three Characteristics of OPP

I. THE CONCEPT OF POLYMORPHISM 1. What is polymorphism? A thing has a variety of forms, that is, to face the various states of the object. Official Interpretation: Multiple different classes of objects can respond to the same method and produce different results It is emphasized that polymorphism is not a special grammar, but a state and ch ...

Added by Ph0enix on Mon, 29 Jul 2019 15:39:21 +0300

Polymorphism of Object-Oriented Foundation

polymorphic Concept: A thing has many different forms. For example, water is solid and gaseous. Bumblebee: Autobots, Cars, Airplanes Official Interpretation: Multiple different classes of objects can respond to the same method and produce different results First of all, it is emphasized that polymorphism is not a special grammar, but a state, a ...

Added by Banacek on Mon, 29 Jul 2019 13:56:32 +0300

JWT VS Session VS Cookie for ASP.NET Core Web Api

Preface In this article, we will discuss the JWT VS Session. This problem is not too much to think about. When we see that comments and discussions are too heated, we spend a little time to research and summarize. By the way, this is the benefit of blogging. A blog may write with accumulated experience, or it may be learning to share, but it a ...

Added by aznjay on Mon, 29 Jul 2019 02:40:15 +0300

Climbing Enterprise Data Information in Anhui Province on Enterprise Search Website

In order to better query the relevant information of enterprises, I crawled the enterprises in Anhui Province. The problems encountered and the technologies used are as follows: 1. Problems encountered: 1 > Enterprise Check PC version data only shows the first 500 pages. In order to maximize the crawl site data, this crawl is crawled accor ...

Added by cricher on Sat, 27 Jul 2019 13:05:15 +0300

Andorid Componentized Jump Routing

Brief introduction Routing plays a very important role in component engineering. How do two module s communicate without mutual reference? We can use EventBus, broadcast, class loading, reflection, scheme, implicit intention and so on. Each of these methods has its own advantages and disadvantages. In ...

Added by mrmachoman on Wed, 24 Jul 2019 12:36:05 +0300

[Python] Chain Household Rental Data Grabbing

1. Write in front As an active developer in Beijing, Tianjin and Hebei, we should take a look at some data of Shijiazhuang, an international metropolis. This blog crawls the rental information of Chain Home. The data can be used as data analysis material in the following blog. The website we need to c ...

Added by Xil3 on Wed, 24 Jul 2019 12:03:25 +0300