The way to simplify Java code

Preface There is a cloud in the old saying: Tao is the spirit of art, and art is the body of Tao; Tao is the rule of art, and art leads to Tao. Among them, "Tao" refers to "law, truth and theory", and "technique" refers to "method, skill and technology". It means that "Tao" is the soul of " ...

Posted on Fri, 08 May 2020 02:21:07 -0700 by Rai_de

How to quickly view the login IP address and other information in Spring Security? One move

I've talked about how to use a more elegant way to customize Spring Security login logic. A more elegant way can effectively avoid the inefficiency brought by custom filters. I suggest you read it and understand the authentication logic in Spring Security by the way. No nonsense. Let's look at today's article. 1.Authentication I've talked with ...

Posted on Thu, 07 May 2020 01:08:54 -0700 by Niruth

ionic realizes wechat, QQ and microblog sharing

1. First of all, you should prepare the following (1) one android.apk package (2) application signature (generate signature with android apk package name)           http://blog.csdn.net/dan_2017/article/details/79138635 (3) fill in application information and apply for appid through various open platforms QQ: Tencent open platform http://o ...

Posted on Tue, 05 May 2020 10:13:14 -0700 by springo

python3 implements 12306 to query the remaining tickets

1, Principle of querying the remaining tickets The normal user's web browser usually enters 12306 official website to query the remaining tickets. You can click to query the starting station, terminal station and date. If you use Python to operate, there are two schemes. One is based on selenium 2 automatic framework ...

Posted on Tue, 05 May 2020 05:38:20 -0700 by Dude0

linux compilation and installation of aria2, remote download settings

System: centos Latest aria2 downloads: aria2 github 1. Download and unzip the latest aria2 wget https://github.com/aria2/aria2/releases/download/release-1.33.1/aria2-1.33.1.tar.bz2 tar -jxv -f aria2-1.33.1.tar.bz2 2. Compile and install cd aria2-1.33.1 ./configure make ...

Posted on Tue, 05 May 2020 00:04:01 -0700 by mcl

Python orchestration & asyncio & asynchronous programming

Python orchestration & asyncio & asynchronous programming 1. Cooperation The coroutine is a kind of micro thread, and it is a kind of context switching technology of user state. Through a thread, the code blocks can be switched to each other for execution There are several ways to implement a collaboration: greenlet, early modules ...

Posted on Mon, 04 May 2020 21:28:26 -0700 by Dave100

The usage of adding filter in web login

I won't explain the filter more. You can read what you want to know Bowen , it's very detailed. First of all, I want to talk about the functions I want to achieve. When the user logs off, although the interface jumps to the login interface, when we enter the main interface address in the address bar, it still jumps to the main interface. I thi ...

Posted on Sun, 03 May 2020 13:32:39 -0700 by deadoralive

Basic knowledge of python operation database

How does python access the database? Through the database interface DB-API, it is a standard to clarify a series of required objects and database access mechanisms. It can provide consistent access for different database adapters and underlying database systems. In order to access the database, python has developed many adapters for connecting ...

Posted on Sun, 03 May 2020 00:47:37 -0700 by harshilshah

sqlalchemy foreign key Association

1, Create two tables and associate foreign keys Import ForenginKey module # -*- coding: UTF-8 -*- from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, DATE, Enum from sqlalchemy import ForeignKey from sqlalchemy.orm import sessionmaker engine = create_eng ...

Posted on Sat, 02 May 2020 16:05:45 -0700 by Kisses

Java - using JavaMail to send an email to the user's mailbox

<----—–start----—–> Send an email via javamail: Earlier, I had written a tool class MailUtils for sending mail. The following points need to be noted: ① The mail server address of the Outbox. ② Outbox account number. ③ Mailbox authorization code, which is set in the used mailbox background management. ④ Addr ...

Posted on Fri, 01 May 2020 14:04:09 -0700 by chriskiely