SpringBoot Integrates SpringSecurity Sample Implementation Separate Permission Annotation + JWT Logon Authentication

SpringSecurity is a security framework for Java enterprise applications, which mainly includes user authentication and user authorization. Compared to Shiro, Security is more powerful, it can easily expand to meet more security control requirements, but it also has a higher learning cost.Both frameworks ...

Posted on Sun, 15 Mar 2020 19:19:12 -0700 by BarmyArmy

java server development servlet: 3. Servlet using jdbc to access database: add employee information to mysql database

Catalog I. Preface 2, Add employee information and insert it into mysql database 1. HTML form submission Code: addEmp.html 2. Profile code: web.xml 3. Java code: AddEmpServlet.java 4. Building database and table (1) Log in to mysql (2) View which databases currently exist (3) Create a new da ...

Posted on Sun, 15 Mar 2020 19:06:09 -0700 by dahwan

Mybatis - XML configuration

<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <!-- global variable --> <properties> <property name="driver" value= ...

Posted on Sat, 14 Mar 2020 22:28:53 -0700 by johnseito

Java self study - add, delete and modify JDBC

Add, delete and modify JDBC CRUD is the most common database operation, that is, adding, deleting, modifying and queryingC add (Create)R read query (Retrieve)U updateD delete In JDBC, the operations of adding, deleting and modifying are very similar, just passing different SQL statements. Step 1: add This is the code in Hello JDBC for inserting ...

Posted on Sat, 14 Mar 2020 10:00:14 -0700 by php4tric

Spring boot (2. X) + security for dynamic permission control

According to my previous blogs about learning SSM+springSecurity, I understand the basic operation of security. Next, we implement springBoot+Security to realize dynamic permission control The test data in this blog database is the data from previous blogs Since the operation of springBoot+security i ...

Posted on Sat, 14 Mar 2020 03:03:51 -0700 by jasper

MySQL Database Management Foundation for Linux Operations and Maintenance

What is SQL: SQL is the standard computer language for accessing and processing databases.SQL (Structured Query Language is Structured Query Language)Role of the database: Used to store all user information, all service programs need a database, stored accounts, passwords, usage records, deposit balance ...

Posted on Thu, 12 Mar 2020 18:51:30 -0700 by rjs

Redis cache server (nginx+tomcat+redis+mysql for session session sharing)

1. Introduction to redis Redis is a key-value storage system.Similar to memcached, it supports storing relatively more value types, including string (string), list (list), set (set), zset (sorted set - ordered set), and hash (hash type).Like memcached, data is cached in memory for efficiency.The difference is that redis periodically writes upd ...

Posted on Thu, 12 Mar 2020 15:13:42 -0700 by jwilliam

Change MySQL default character set to UTF-8 in my.cnf?

For now, we use the following command in PHP to set the character set to UTF-8 . Because of this overhead, we want to set it as the default in MySQL. Can we do this in / etc/my.cnf or elsewhere? SET NAMES 'utf8' SET CHARACTER SET utf8 I found a default character set in / etc/my.cnf, but nothing about it. At this point, I do the fol ...

Posted on Thu, 12 Mar 2020 03:52:55 -0700 by snaack

MYSQL database index

Index overview In MySQL, an index is composed of one or more columns in a data table. The purpose of creating an index is to optimize the query speed of the database. Where, the index created by the user points to the specific data location in the database. When users query the data in the database by index, they do not need to traverse all t ...

Posted on Thu, 12 Mar 2020 02:08:04 -0700 by phpcodec

Architect's internal mental skill, a detailed explanation of bridging mode connecting two spatial dimensions

In real life, the bridge mode can also be seen everywhere, such as connecting two spatial dimensions of the bridge, connecting the virtual network and the real network. Bridge Pattern is also called Bridge Pattern, interface pattern or Handle And Body pattern. It separates the abstract part from its concrete implementation part so that they ca ...

Posted on Wed, 11 Mar 2020 02:29:07 -0700 by belayet