SpringBoot+Security dynamic configuration permission

Preface In today's web development, the authentication of security rights has always played an important role, so Spring has also produced its own security module, but this is a relatively heavy framework, configuration is quite cumbersome. Later, shiro, a lightweight security framework, emerged. The ...

Posted by spaze on Tue, 11 Feb 2020 05:32:51 -0800

Using spring boot + mybatis + RabbitMQ + redis to simulate the second kill function of the mall

Using spring boot + mybatis + RabbitMQ + redis to simulate the second kill function of the mall First, we need to install RabbitMQ. Before installing RabbitMQ, we need to install Erlang, because RabbitMQ is based on Erlang. For specific steps, click the following link: After installation, RabbitMQ i ...

Posted by newjsguy on Tue, 11 Feb 2020 01:49:52 -0800

[note 4-commodity module] independently completed the development of enterprise Java e-commerce website (server side) from 0

Classification management module Data table structure design Classification table CREATE TABLE,mmall_ category' ( 'id' int(11) NOT NULL AUTO_ INCREMENT COMMENT ' category Id', 'parent_ id' int(11) DEFAULT NULL COMMENT 'Parent category id When id=0 Time description is the root node,Class I' , 'name' varchar(50) DEFAULT NULL COMMENT ' Category n ...

Posted by monk.e.boy on Mon, 10 Feb 2020 23:55:06 -0800

SSM integration Spring+SpringMVC+Mybatis

Chapter 1: building an integrated environment 1. Build an integrated environment Integration Description: there are many ways to integrate SSM. We will choose XML + annotation The idea of integration Build an integrated environment first First, set up the Spring configuration Using Spring to ...

Posted by Admiral S3 on Mon, 10 Feb 2020 07:44:49 -0800

Quick learn - MyBatis map file

Chapter 4 MyBatis mapping file 4.1 introduction to mybatis mapping file The real power of MyBatis lies in its mapping statement and its magic. Because of its extraordinary power, the XML file of mapper is relatively simple. If you compare it with JDBC code with the same function, you will immediate ...

Posted by wtg21.org on Mon, 10 Feb 2020 04:20:58 -0800

MyBatis delay load (lazy load) Introduction

MyBatis delayed loading Introduction In the previous article, multi table query is introduced. In practice, we often involve multi table joint query, but sometimes, not all query results will be used immediately. Let me give two examples: For example, to query the purchase details of a batch of notebook computers, instead of directly displayi ...

Posted by kkeim on Mon, 10 Feb 2020 02:50:54 -0800

idea code artifact: generate code according to table

Easycode is a plug-in of idea, which can generate entity,controller,service,dao,mapper directly to the data table. It is simple and powerful without any coding. 1. Installation (EasyCode) My words here are already loaded. I suggest you install a plug-in called Lombok. Lombok can automatically generate constructor, getter/setter, equals, hashco ...

Posted by freakstyle on Sun, 09 Feb 2020 05:21:43 -0800

Reflection of Java Foundation

Java reflection mechanism is a very powerful function, which can be seen in many large projects such as spring and mybatis. Through the reflection mechanism, we can get the type information of the object during running. With this feature, we can implement design patterns such as factory pattern and agen ...

Posted by les48 on Sun, 09 Feb 2020 03:53:45 -0800

IDEA creates Spring Boot + MySql + mybatis project

1. Create a new Spring Boot project The specific steps are as follows Select the appropriate dependency: Under src/main/resources of the spring boot project, the application.properties file exists by default. This is the configuration file of the spring boot project. Almost all related configurations ...

Posted by dennissanche on Fri, 07 Feb 2020 05:21:37 -0800

MyBatis interface binding and multiparameter

Article Directory MyBatis Interface Binding Scheme and Multi-parameter Passing map mode for multiparameter transfer Interface Binding Interface for multiparameter delivery MyBatis Interface Binding Scheme and Multi-parameter Passing In addition and deletion checks of MyBatis, it is found that ...

Posted by TRB on Tue, 04 Feb 2020 19:39:38 -0800