File upload and download case based on SpringBoot and Mybatis

File upload and download case based on SpringBoot and Mybatis This case is based on the actual combat of the [bad programmer] enterprise file upload and download project based on SpringBoot and Mybatis. BiliBili link: https://www.bilibili.com/video/BV1764y1u7gn?p=1 Effect achieved 1. Users need to log in first. We use shiro authentication to ...

Posted by k994519 on Thu, 23 Dec 2021 02:17:59 +0100

springboot+vue3.0+token security verification

catalogue 1, Explain When the front and back ends are completely separated, the general idea of implementing token verification in Vue project is as follows (too lazy to type. This part quotes the content of the blogger User login and token authentication in Vue project): 1. When logging in for the first time, the front end calls the ba ...

Posted by shadiadiph on Mon, 20 Dec 2021 02:51:27 +0100

Quick Start and Use of JWT

Use of JWT(JSON Web Token) Preface This post is correct shiro uses JWT Complete complementary extensions to provide full sample code for detailed use in JWT. If there is a discrepancy between your understanding of RSA and your own reading of this blog, please read the part of this blog explaining RSA. If there are other inconsistencies a ...

Posted by tinker on Wed, 01 Dec 2021 21:06:32 +0100

I want SMS login, email login and QQ login. What should I do?

@[toc]Today, I want to talk to you about the multi Realm authentication strategy in Shiro ~In the project, if we want multiple login methods such as mobile phone verification code login, third-party QQ login and email login to coexist, we can consider implementing them through multiple realms in Shiro. In specific operations, one Realm just cor ...

Posted by jlive on Tue, 09 Nov 2021 01:42:50 +0100

Spring security and Shiro learning notes

Spring security and Shiro learning notes Suitable for beginners with spring security and Shiro. 1, Safety profile Security has always been a very important aspect in Web development. Although security is a non functional requirement of an application, it should be considered at the early stage of application development. If the securit ...

Posted by elfynmcb on Wed, 06 Oct 2021 03:11:34 +0200

User verification and authorization process call stack 2 of shrio (detailed)

shiro's process of permission management 1, Login authentication After the request is initiated: it will judge which permissions are needed through doFilter. Before reviewing shiro, you need to have a certain understanding of springMvc. According to the debug, review the processing flow of MVC - a ...

Posted by ClaytonBellmor on Sat, 20 Jun 2020 08:52:06 +0200

Source code analysis of shiro filter

I. configuration <!-- Shiro Of Web filter --> <bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean"> <!-- Injection Security Manager--> <property name="securityManager" ref="securityManager"/> <!-- Set up login URL--> <property name="loginUrl" value="/login"/> ...

Posted by bdemo2 on Fri, 29 May 2020 18:11:48 +0200

Configuration of spring MVC in spring boot

Using spring MVC in spring boot To use spring MVC in spring boot, you only need to introduce spring boot starter web (provided that the pom file of the project is inherited from spring boot starter parent): <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring- ...

Posted by Firestorm ZERO on Sun, 05 Apr 2020 03:11:10 +0200

shiro framework and spring integration in my java history

Any framework needs to use pom dependency first... Configure Shiro related information in shiro.xml configuration file Because securityManager needs realm package com.ssq.realm; import com.ssq.pojo.User; import com.ssq.service.RoleService; import com.ssq.service.UserService; import org.apache.shiro.au ...

Posted by Kuraden on Wed, 11 Mar 2020 10:05:20 +0100

Simple authentication example with spring boot 2 + shiro

Shiro is a powerful and easy-to-use Java security framework on the official website: https://shiro.apache.org/. The main functions are authentication, authorization, encryption, and session management.Other features include Web support, caching, test support, allowing one user to access as another user, and remembering me. Shiro has three c ...

Posted by Dread on Mon, 09 Dec 2019 03:01:33 +0100