[Spring Security] how to store user data into the database?

How does Spring Security store user data into the database? Up to now, we haven't connected to the database. In real projects, in most cases, we design our own permission database. However, Spring Security also provides us with a permission database designed by itself. Let's see what's going on first! Let's learn this simple one first, and the ...

Added by shocker-z on Sun, 20 Feb 2022 02:07:09 +0200

MHA high availability cluster deployment and failover of database

1, MHA overview MHA (MasterHigh Availability) is a set of excellent software for failover and master-slave replication in MySQL high availability environment. The emergence of MHA is to solve the problem of MySQL single point. During MySQL failover, MHA can automatically complete the failover operation within 0 ~ 30 seconds. MHA can ensure ...

Added by hyp0r on Sat, 19 Feb 2022 22:50:48 +0200

Principle analysis of Java thread pool

I recently learned the "Java Concurrent Programming Practice" of geek time, and I have a new understanding of java thread pool and my own understanding, as well as some ideas, such as whether I can design a distributed thread pool, whether I can design a thread pool that can dynamically modify parameters, and whether I can design a th ...

Added by river001 on Sat, 19 Feb 2022 21:11:42 +0200

MySQL foundation summary

1, Connection query Classification according to the way of table connection: Internal connection: equivalent connection, non equivalent connection and self connection External connection: left external connection (left connection), right external connection (right connection) Syntax: join ... on ... select ... from Table name 1 join Table na ...

Added by rvdb86 on Sat, 19 Feb 2022 20:54:22 +0200

02. MySql single table & constraint & Transaction

1. DQL operation sheet 1.1 create database and copy tables Create a new db2 database CREATE DATABASE db2 CHARACTER SET utf8; Copy the emp table in the db1 database to the current db2 database 1.2 sorting The sorting effect of the query can only be displayed through the order clause, and the sorting effect will not be displayed thro ...

Added by ol4pr0 on Sat, 19 Feb 2022 20:40:09 +0200

Detailed explanation of MySQL table constraints

catalogue 1, MySQL PRIMARY KEY Set primary key constraint when creating table Set federated primary key when creating table Delete and modify primary key constraints II. MySQL FOREIGN KEY constraint and UNIQUE constraint Set foreign key constraints and unique constraints when creating tables 3, MySQL CHECK constraint (CHECK) Delete ch ...

Added by Averice on Sat, 19 Feb 2022 15:36:33 +0200

Introduction to Exception and the use of transactions

Introduction to Exception and the use of transactions 1, Java exceptions: Error and Exception 1. Overview of exception mechanism The exception mechanism refers to how the program handles when an error occurs in the program. Specifically, the exception mechanism provides a safe channel for the program to exit. When an error occurs, the proces ...

Added by Donny Bahama on Sat, 19 Feb 2022 05:03:39 +0200

MySQL basic case notes - basic query

Common statements: --show database SHOW DATABASES; #Create a table score in stuinfo, including column id,name, and grade scores --Select database USE stuinfo; --Create table CREATE TABLE score(    id INT,    -- auto_increment Automatic growth    NAME VARCHAR(20),-- varchar() Variable length string    grade INT); #Query table Syntax: sele ...

Added by sotusotusotu on Sat, 19 Feb 2022 01:21:15 +0200

Java JDBC programming North

preface In our daily APP or website, we often need to access data. For example, in wechat, we need to store a series of information such as our user name, mobile phone number, user password, etc. Relying on the Java related knowledge learned before can no longer meet this demand. Now the most basic and widely used application program is relati ...

Added by icey37 on Sat, 19 Feb 2022 00:35:57 +0200

Linux Installation JDK, Tomcat, mysql, redis

Virtual machine installation, Linux system and software installation Environmental Science: Software selection: server with GUI Network type: use network address translation (NAT) Power on automatic networking cd /etc/sysconfig/network-scripts/ vim Network profile //ONBOOT = "no" is changed to yes, and there is no need to conne ...

Added by sarun on Fri, 18 Feb 2022 23:32:30 +0200