[Spring Security + OAuth2 + JWT introduction to actual combat] 13. Third party QQ login and source code analysis

Source code analysis Because spring security social is implemented based on social authentication filter, let's start with social authentication filter When it comes to Filter, there must be a corresponding configuration class SocialAuthenticationFilter is no exception. Its corresponding configuration class is SpringSocialConfigurer. To make ...

Posted by raymie7 on Sun, 08 Mar 2020 05:20:00 -0700

The use and source code analysis of mybatis

Source code of the project: https://github.com/zhuquanwen/mybatis-learn/releases/tag/with-annotation Construction process: Based on the previous article, some processes are not described in detail. The previous source code has been attached. Please refer to the previous article: https://blog.csdn.net/u0 ...

Posted by davieboy on Sat, 07 Mar 2020 23:49:30 -0800

JWT generates token with error: secret key byte array cannot be null or empty

Want to get the most complete and detailed information of the whole network: (1022848328)   JWT generates token with error: secret key byte array cannot be null or empty java.lang.IllegalArgumentException: secret key byte array cannot be null or empty. at io.jsonwebtoken.lang.Assert.notEmpty(Asse ...

Posted by seddonym on Sat, 07 Mar 2020 06:09:19 -0800

Shiro -- session management

session management Shiro provides a complete enterprise level session management function, independent of the underlying container (such as web container tomcat), which can be used in both Java Se and Java EE environments. It provides session management, session event monitoring, session storage / persistence, container independent clustering, ...

Posted by genics on Sat, 07 Mar 2020 00:46:52 -0800

SpringBoot + thrift + apache.commons.pool2: build a thrift client connection pool on the springboot project

Catalog I. Preface 2, thrift server 3, thrift client connection pool Introducing pom dependency Objects that need to be pooled Object factory Object pool Configuration class of object pool Spring configuration class Four, use Five, summary I. Preface Because of the need of work, when using thr ...

Posted by vickyjackson on Thu, 05 Mar 2020 21:58:27 -0800

Conversion of various time types in Java

Catalog   Preface: (1) Time stamp milliseconds to seconds (2) Time stamp conversion to time type (3) Convert common time types to timestamps (4) Use third-party class library conversion (5) String to Date (6) Date to String (7) Calendar to String (8) String to Calendar (9) Date to Calendar ...

Posted by misterph on Thu, 05 Mar 2020 18:10:51 -0800

Write a simple MR program and run it in the cluster!! (wordcount)

Preface Implement a handwritten WC program and package it to run on the cluster. Create a Maven project and import pom Engineering catalogue Import pom <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/X ...

Posted by RCS on Thu, 05 Mar 2020 04:17:04 -0800

Network Crawler Generation Agent ip

agent When writing web crawlers, we often encounter the problem of frequent IP access being blocked. The commonly used solution is to proxy ip.To do this, I wrote a sample program that randomly generates an available proxy ip. program package proxy; import java.io.IOException; import java.net.URISyntaxException; import ...

Posted by marseille on Wed, 04 Mar 2020 08:23:59 -0800

Talk about skywalking's AbstractPlatformTransactionManagerInstrumentation

order This paper mainly studies the AbstractPlatformTransactionManagerInstrumentation of skywalking AbstractPlatformTransactionManagerInstrumentation skywalking-6.6.0/apm-sniffer/optional-plugins/optional-spring-plugins/spring-tx-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/transaction/define/AbstractPlatformTransactionManagerIn ...

Posted by YodaOfCamarilla on Wed, 04 Mar 2020 06:42:11 -0800

Using spring MVC to upload files

Original address: http://www.yiidian.com/springmvc/file-upload.html File upload is a common requirement in the presentation layer. In Spring MVC, the common file upload tool of Apache is used to complete file upload and encapsulate it, making it more convenient for developers to use. Let's see how to develop it? 1 import common file upload pack ...

Posted by enoyhs on Wed, 04 Mar 2020 05:04:44 -0800