Shiro integrates some configurations and problems of springboot

First, post the official website address https://shiro.apache.org/spring-framework.html 1, shiro configuration class To use shiro, you must configure a shiroConfig configuration class, which requires three bean s: Realm, custom realmDefaultwebsecuritymanager needs to pass the Realm parameterShiroFilterFactoryBean, you need to pass the defaul ...

Posted by andy666 on Tue, 07 Dec 2021 01:12:31 -0800

Springboot+AOP + custom annotation implements operation log and exception log

         In our daily work, we often encounter the need to implement the functions of operation log, login log, error log, etc. the young partners who have just joined the company do not know what to do, or the first idea is to write a method to add to the log table in each method in the business code, bu ...

Posted by LonelyPixel on Sun, 05 Dec 2021 22:09:11 -0800

tkMapper usage and demo demonstration

tkMapper usage and demo demonstration 1. Realization Law of Dao Layer - Preface Entity classes correspond to data tables and are regular - they can be generated as long as the structure of the data table is known. A single word equals a single word, and multiple word fields are the hump nomenclature.The methods defined in the DAO interfaces o ...

Posted by A JM on Sun, 05 Dec 2021 16:47:11 -0800

SpringBoot project embraces the practice of mybatis plus persistence layer framework

Contents of this article preface Since the launch of Mybatis plus, more and more companies have chosen the Mybatis plus framework to replace the persistence layer framework Mybatis in their own projects. Because Mybatis plus not only has the flexibility of handwritten complex sql statements of Mybatis, but also has the general framework met ...

Posted by bob2006 on Sun, 05 Dec 2021 13:54:36 -0800

Application practice of integrating MyBatis with SpringBoot

catalogue MyBatis environment initialization summary Create project module Add project dependency Mybatis simple configuration implementation. Create project startup class Environment test code implementation Announcement data layer MyBatis practice Business description Pojo class design Dao interface and method Implementation and a ...

Posted by tsfountain on Sun, 05 Dec 2021 13:42:58 -0800

The principle of springboot-part01

1. Principle 1.1pom.xml Spring boot dependencies: the core dependencies are in the parent projectWhen we write or introduce some Springboot dependencies, we don't need to specify the version because there is a version repository 1.2 starter <dependency> <groupId>org.springframework.boot</groupId> <artifactId> ...

Posted by richmlpdx on Sun, 05 Dec 2021 06:43:23 -0800

[crazy God says Java] detailed explanation of Spring

Crazy God video address https://www.bilibili.com/video/BV1WE411d7Dv?p=3 1,Spring 1-1. Introduction to spring Spring: Spring -------- -- > brings spring to the software industry! In 2002, the prototype of Spring framework: interface21 framework was launched for the first time! Spring framework is based on interface21 framework. ...

Posted by bob_dole on Sun, 05 Dec 2021 06:11:11 -0800

Tomcat auto configuration of SpringBoot

preparation We know that the secret of SpringBoot's automatic assembly is in the spring.factories file under the org.springframework.boot.autoconfigure package, and the principle of embedding Tomcat is a configuration class loaded in this file: org.springframework.boot.autoconfigure.web.servlet.servletwebserverfactory autoconfiguration @Configu ...

Posted by bing_crosby on Sat, 04 Dec 2021 23:37:13 -0800

Implementation principle of SpringBoot health check

For the routine of SpringBoot automatic assembly, directly look at the spring.factories file. When we use it, we only need to introduce the following dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> Then you can find t ...

Posted by pgudge on Sat, 04 Dec 2021 22:10:47 -0800

Vue +Springboot blog project summary

Vue+Springboot blog project summary Technology stack: Vue + springboot + mybatis Plus + redis + MySQL 1. Construction of project environment 1.1. Dependency of sub module and parent module When the parent module uses version management for dependency management, it must declare the version number. If not, the child module cannot introd ...

Posted by dickey on Sat, 04 Dec 2021 21:43:41 -0800