Mybatis quick start
mybatis
Dependency used (gradle)
//mybatis dependency
compile group: 'org.mybatis', name: 'mybatis', version: '3.5.6'
// mysql
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.22'
// mybatis paging plug-in
compile group: 'com.github.pagehelper', name: 'pagehelper', version: '5.2.0'
Interface class
{ ...
Posted by Nicksta on Sun, 06 Feb 2022 18:49:07 +0100
[spring IOC] the spring IOC container bean is parsed and encapsulated as BeanDefinition
When we use context to obtain beans, in fact, the bottom layer is the DefaultListableBeanFactory class of operation. This class is mainly divided into two parts:
Registered bean: parse class and encapsulate it as beanDefinition object;Instantiate an object from beanDefinition.
Let's first look at how to save data.
beanDefinition object
Prop ...
Posted by hrosas on Sun, 06 Feb 2022 08:27:26 +0100
Mbatis plus usage details
1, Pure Mybatis is integrated with Mybatis plus.
1. Import dependency
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ...
Posted by my_mind on Sun, 06 Feb 2022 06:44:36 +0100
Integration between Springboot and various components
@TOC
Conditional annotation in springboot
@Conditional The bean is loaded when a specific condition is triggered
There are many sub annotations under this annotation,
@ConditionalOnClass
package org.springframework.boot.autoconfigure.condition;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java. ...
Posted by finger on Sun, 06 Feb 2022 03:48:02 +0100
Java mainstream framework - (11) spring boot advanced
1.SpringBoot auto configuration - Condition-1
Condition is spring 4 The conditional configuration interface introduced after 0 can conditionally load the corresponding beans by implementing the condition interface
@Conditional should be used with the implementation class of Condition (ClassCondition)
ClassCondition
public class ClassCondit ...
Posted by davidtube on Sun, 06 Feb 2022 01:00:50 +0100
SpringBoot: asynchronous, scheduled, mail tasks
Preface (crazy God)
In our work, we often use asynchronous processing tasks. For example, when we send mail on the website, the background will send mail. At this time, the foreground will make the response motionless, and the response will not succeed until the mail is sent. Therefore, we generally use multithreading to process these tasks ...
Posted by jamal dakak on Sat, 05 Feb 2022 19:13:36 +0100
Spring Boot automatic assembly (detailed explanation of necessary problems)
Based on Spring Boot 2.6.3, this paper summarizes the core points of interview answers at the end of the article.
1. What is automatic assembly
When we use Spring Boot, we will automatically assemble the Bean into the IoC container. For example, when using Redis database, we will introduce the dependency Spring Boot starter data Redis. Af ...
Posted by jjbarnone on Sat, 05 Feb 2022 12:16:01 +0100
Java graduation design + ready-made products - "Java boutique design" is based on java springmvc+mybatis wine mall management system (source code + sql)
Description of main functions:
Administrator role
View customer information, beverage management, view categories, order management and other functions.
User role:
Users log in and register, modify personal information, view the home page, view the classification of drinks, view hot drinks, view the details of drinks, view the shopping cart ...
Posted by iceblox on Sat, 05 Feb 2022 11:16:14 +0100
[summary] implementation summary of self-developed Spring framework
Instance creation
1. Create annotations @ Controller, @ Service, @ Repository, @ Component
2. Extract tag object
Realization idea
◆ specify the range and obtain all classes within the range ◆ traverse all classes, get the annotated classes and load them into the container
How to get the class collection according to the package name? ...
Posted by srihari3d2010 on Sat, 05 Feb 2022 09:59:10 +0100
Introduction and use of Spring Boot
catalogue
preface
Evolution of Java backend
What is Spring boot?
text
Getting started with Spring boot
summary
raise a query
How to effectively learn methods and technical consultants
preface
Evolution of Java backend
In today's era when the Internet is so developed, the amount of data generated every day is countless. The back- ...
Posted by shiznatix on Sat, 05 Feb 2022 07:01:04 +0100