Security login authentication process analysis

Recently, when I was writing my graduation project, I used this framework. My partner gave me a demand for multiple login methods. He said that only account and password login were not very good, and asked me to add several methods, such as SMS authentication login, email authentication login, third-party login, etc. (the first two have been im ...

Posted by James138 on Sat, 25 Sep 2021 12:30:40 +0200

Introduction to thymeleaf of springboot

Introduction to thymeleaf of springboot Because JSP cannot be parsed in the compressed package, spring boot does not support JSP by default. Therefore, we need to use a third-party template engine, such as thymeleaf we introduced this time Official website address: https://www.thymeleaf.org/ What is thymeleaf thymeleaf is a template engin ...

Posted by Jay2391 on Sat, 25 Sep 2021 11:06:56 +0200

SpringBoot exception handling

By default, the Spring Boot project error page and information will be displayed directly on the browser. As shown below: However, after the project is actually launched, the user experience is absolutely terrible. You should give users a more friendly error prompt after encountering an error. Error page prompt Set specific status cod ...

Posted by donny1298 on Thu, 23 Sep 2021 16:44:24 +0200

ShardingSphere actual combat: SpringBoot integrates sharding JDBC to realize sub database and sub table

preface Teach you how to use sharding JDBC to realize the database sub database and sub table. 1, Concept Sub database and sub table Database and table splitting is a reasonable splitting of databases and tables when the amount of data is large to a certain extent. Take MySQL as an example: it is recommended that the maximum amount ...

Posted by sbroad on Thu, 23 Sep 2021 15:15:51 +0200

Java notes: spring IoC

IoC container Container is a software environment that provides necessary support for the operation of a specific component. IoC refers to Inversion of Control Components assembled in IoC container need some kind of "injection" mechanism For example, a component needs a datasource. Instead of creating a datasource, it waits for the ...

Posted by Pryach on Thu, 23 Sep 2021 13:58:19 +0200

[what are cookies and sessions]

Cookie What is a Cookie? A Cookie is a piece of valid information obtained by the browser when accessing the server. After the browser obtains the Cookie, it will be saved to the local disk. As long as the Cookie is still valid, it will automatically carry the Cookie to the server when accessing the server again. What's the use of cookies? ...

Posted by R0d Longfella on Thu, 23 Sep 2021 09:00:41 +0200

SpringBoot and data access (JPA and Mybatis)

part 1 ORM framework ORM (Object-Relational Mapping) The emergence of ORM framework is essentially to simplify the coding of database operations in the programming process. Now this ORM framework can be basically divided into two categories. First, the representative of fully automatic ORM framework is -- > hibernate claims that you don't n ...

Posted by BuzzPHP on Tue, 21 Sep 2021 06:38:50 +0200

Launch springboot project in the background on Linux

We know there are three ways to start a springboot project: Run Main Method StartStart the application on the command line using the command mvn spring-boot:runWhen you run "mvn package" for packaging, it is packaged into a JAR file that can be run directly and run directly using the "java-jar" command. We typically use the ...

Posted by dannon on Mon, 20 Sep 2021 19:09:39 +0200

SpringBoot creates media classes and filters that store tokens

The reason why you need to create a media class to store tokens is that the filter interface to be used later. 1, Create ThreadLocalToken class Purpose of creating ThreadLocalToken class: Create the ThreadLocalToken class in com.example.emos.wx.config.shiro. Write the following code: package com.example.emos.wx.config.shiro; import org.sp ...

Posted by jmarcv on Sun, 19 Sep 2021 07:12:10 +0200

One move to get the visual monitoring of Spring Boot!

1. Introduction When an application is running in a production environment, it is necessary to monitor its health. By understanding the health of the application in real time, you can get a warning before the problem occurs, and you can solve the problem before the customer notices the problem. In this article, we will create a Spring Boot ap ...

Posted by Bubbagump on Sat, 18 Sep 2021 10:58:46 +0200