Mybatis plus query sql condition: deleted = 0
This article introduces the integration of spring boot and mybatis plus in the project. When writing query methods, lambda is used to represent query data. When actually executing sql, the where condition will be spliced with deleted = 0.
Reason: 1. Delete field in global configuration. Default delete value = 1 Undeleted value = 0. The configu ...
Added by kentish on Thu, 06 Jan 2022 04:25:40 +0200
Mybatis learning notes: using annotation development (CRUD)
Learning content: using annotation development (CRUD)
1. How to use annotations
1.1. Annotation is implemented on the interface 1.2. The interface needs to be bound in the core configuration file 1.3 preparation of test procedures We can use annotations without writing usermapper XML (can be understood as interface implementation class ...
Added by tillaart36 on Thu, 06 Jan 2022 03:20:41 +0200
Quickly master MyBatis plus, an enhanced version of MyBatis
What is mybatis plus
It's a MyBatis (opens new window) On the basis of MyBatis, only enhancements are made without changes
MyBatis Puls benefits:
There is no need to add, delete, modify and query sqlBuilt in code generator, paging plug-in, etcProvide a functional conditional constructor for rapid sql free developmentDo some small and medium- ...
Added by DimArchon84 on Thu, 06 Jan 2022 02:28:54 +0200
SpringBoot uses the ApplicationListener listener
Usage scenario
In some business scenarios, after a series of actions such as initialization, restart and shutdown of the Serverlet container, some operations need to be processed, such as loading some data, initializing the cache, registering specific tasks, and so on. At this time, we can use the ApplicationListener provided by Spring to oper ...
Added by glory452 on Wed, 05 Jan 2022 15:12:12 +0200
It's easy to realize data visualization without writing code. This artifact based on SpringBoot is amazing
Before, some readers asked me if I have any useful BI (Business Intelligence) tools? BI tool is simply a data visualization tool. Today, I recommend an open-source data visualization tool DataEase, which is implemented based on SpringBoot and integrated with Apache Doris + Kettle. It can support second level query of large amount of data. ...
Added by gromer on Wed, 05 Jan 2022 12:36:59 +0200
SpringBoot entry to mastery
Introduction: Course Overview
Reprint (invasion and deletion): https://gitee.com/eson15/springboot_study
Course catalogue
Introduction: Course OverviewLesson 01: Spring Boot development environment setup and project startupLesson 02: Spring Boot returns Json data and data encapsulationLesson 03: Spring Boot using slf4j for loggingLesson 04: ...
Added by Bojan86 on Wed, 05 Jan 2022 11:23:14 +0200
Introduction to MyBatis
Introduction to MyBatis
Building SqlSessionFactory from XML
Each MyBatis application is based on an instance of SSF (SqlSessionFactory), which can be obtained through SSF Builder. SSF Builder can build an SSF through XML configuration file or configuration class.
It is very convenient to build SSF through XML files. It is recommended to use ...
Added by mpiaser on Wed, 05 Jan 2022 10:52:39 +0200
Spring Boot+Spring Security realize automatic login function (actual combat + source code analysis)
Automatic login is a very common function in software development. For example, we log in to QQ email:
In many websites, we will see similar options when logging in. After all, it is very troublesome to always let users enter their user name and password.
The automatic login function is that after the user logs in successfully, if the use ...
Added by abhi_10_20 on Wed, 05 Jan 2022 10:22:17 +0200
SpringCloud service gateway quickly landed in practice
Application of service gateway in microservice
Foreign service challenges
The application system of microservice architecture is very large. The basic components that need to be deployed independently include registration center, configuration center and service bus, Turbine exception aggregation and monitoring disk, call chain tracki ...
Added by pollysal on Wed, 05 Jan 2022 08:19:15 +0200
SpringBoot integration notes
1, SpringBoot quick start
1.1 rapid construction
idea development tool, jdk1 eight 1.New Project->Spring Initializr 2. Select dependent - > finish 3. Create a controller package and an IndexController class under the package
@RestController
public class IndexController {
@RequestMapping("/hello")
public String Hello(){
...
Added by kabucek1 on Tue, 04 Jan 2022 23:16:01 +0200