Minutes to connect your website to GitHub third-party login

OAuth2 and our little buddies have talked a lot. Let's practice with a practical case. Here I use GitHub for third-party login. Why GitHub?There are two considerations: Programmers basically have GitHub accounts for easy testing. In China, no matter QQ, WeChat, Weibo, etc., registration and auditing are required, which takes a lot of t ...

Posted by Stephen on Tue, 09 Jun 2020 10:08:22 -0700

SpringBoot event listening

summary The Spring framework provides a perfect event monitoring mechanism. The steps to implement event monitoring in the Spring framework are as follows: Custom events, inheriting org.springframework.context.ApplicationEvent abstract class Define event listener, implement org.springframework.contex ...

Posted by phpsir on Tue, 09 Jun 2020 01:51:07 -0700

Springboot integrates flowable modeler without login, and queries the user / user group to change to its own system data

Before the flow chart was drawn, tomcat was used to start the flow modeler, but in this way, the data in your system cannot be queried when assigning task users / user groups. So now we need to integrate the flowable modeler into the project. I searched a lot of articles before, but I didn't feel very clear. Maybe it was because I just got ...

Posted by garygay on Tue, 09 Jun 2020 00:30:35 -0700

Spring cloud integrates with Seata and uses Nacos as the registration center and configuration center to build the initial experience

Recently, we are introducing distributed transaction technology for the project. At present, Seata is a good choice. I plan to take a look at it. This article is purely a personal learning note, without any responsibility. In this article, nacos-1.2.0, SpringBoot-2.3.0, seata-1.2.0, mysql-5.7 are use ...

Posted by fluvius on Mon, 08 Jun 2020 23:16:09 -0700

SSM=Maven build project and Maven sub module build project

1, General knowledge of software development (1) Project development process 1. Project approval Project implementability analysis: (a project) 100W project, the development cycle is expected to be 6 months, 10 people are needed, and the operation (human) cost is 2W / person The product manager st ...

Posted by andybrooke on Mon, 08 Jun 2020 22:30:50 -0700

Please, don't write a full screen try catch again!!

Author: giant brother cnblogs.com/jurendage/p/11255197.html background In the process of software development, it is inevitable to deal with all kinds of exceptions. For myself, at least half of the time is spent dealing with all kinds of exceptions, so there will be a lot of try {...} catch {...} finally {...} code blocks in the code, which ...

Posted by chapm4 on Mon, 08 Jun 2020 21:34:07 -0700

Basic AOP usage of spring

AOP: [dynamic agent] It refers to the programming method that dynamically cuts a piece of code into a specified method position to run during the program running 1. Import aop module: Spring AOP: (spring aspects) 2. Create a business logic class (MathCalculator): print the log when the business logic ...

Posted by ataylor20 on Mon, 08 Jun 2020 19:00:16 -0700

SpringBoot Learning Notes--Automatic Configuration Principle

The properties that a profile can configure refer to: https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html Principle of automatic configuration 1. When Spring Boot starts, the main configuration class is loaded, and the auto-configuration function is tu ...

Posted by fatherlyons on Mon, 08 Jun 2020 18:27:24 -0700

Talk about dependency injection annotation @ Resource and @ Autowired

1. Preface @Both Resource and @ Autowired annotations can be used for declarative dependency injection in Spring Framework applications. And the interview often involves these two notes of knowledge. Let's summarize them today. 2. @Resource Full name javax.annotation.Resource , which is an annotation of the JSR-250 specification, including Jak ...

Posted by stratguitar on Sun, 07 Jun 2020 19:06:28 -0700

Redis Learning Integration

Redis Redis 1. CAP principle of relational database CAP Three in two of CAP BASE 2. Introduction to distributed and cluster Distributed colony 3. Introduction to redis What is it? characteristic application basic operation add to Value 4. Redis data type String List Set Hash Zset 5. Three ...

Posted by saku on Sun, 07 Jun 2020 03:28:48 -0700