Complete project learning-5
1. Mybaits plus project integration
1.1 explanation of modified cases
/**
* MP update operation
* Note: change the name of id=354 to "six eared macaque"
*/
@Test
public void updateUserById(){
User user = new User(354,"Six eared macaque",null,null);
int rows = userMapper.updateById(user);
...
Posted by rel on Thu, 11 Nov 2021 12:05:11 -0800
Java object oriented
Pop (procedure oriented programming) is a process centered programming idea, and each step of the function is realized by itself.
Object oriented programming (OOP) is an object-centered programming idea, which realizes specific functions by commanding objects.
1. Classes and objects
Class is an abstraction of a class of things with commo ...
Posted by satanclaus on Thu, 11 Nov 2021 11:45:03 -0800
Use of Spring Data Redis Stream
1, BackgroundThe Stream type is a new type after redis5. In this article, we use Spring boot data redis to consume the data in Redis Stream. Realize independent consumption and consumption group consumption.2, Integration steps1. Import jar package<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId& ...
Posted by awiedman on Thu, 11 Nov 2021 11:07:58 -0800
Learning notes: implementing OPT FIFO LRU LFU with JAVA
Note: the note is about the implementation of page replacement algorithm by fengsigaoju boss( (35 messages) java implements the page replacement algorithm (OPT,FIFO,LRU) _fengsigaoju's blog - CSDN blog _pagereplacement algorithm code java )Learning, invasion and deletion.
I have been learning JAVA for one month. If there are any deficiencies, ...
Posted by ruppelm on Thu, 11 Nov 2021 10:29:03 -0800
Reflection of [JavaSE basic review] (including practice Demo)
reflex
1. Class loader
1.1 loading of class
When a program wants to use a class, if the class has not been loaded into memory, the system will initialize the class through three steps: loading, connecting and initialization.
load This is to read the class file into memory and create a class object for it. When any Class is used, the sy ...
Posted by Rederick on Thu, 11 Nov 2021 10:05:08 -0800
SpringIOC Source Analysis
Life cycle of bean sCircular DependencyLevel 3 Cachefactorybena and benafactoeyDifferences between appliaationcontext and beanfactoryioc container
bean - Data Structure - map - Level 3 Cache
IOC container
context.getBean() - When to call
How to create a bean - factory, reflection - configuration file (xml) in a container
Introduction t ...
Posted by Digimatt on Thu, 11 Nov 2021 09:22:37 -0800
A brief introduction to Spring Cloud and a simple introductory example
1 Overview Spring Cloud is based on Spring Boot, which provides several components to help enterprises build micro-service systems. The main functions it provides are: Service Registry/Service Registration/Service Call/Load Balancing/Circuit Breaker, etc. Generally, it uses the existing open source software, which is based on the concept of Spr ...
Posted by colmtourque on Thu, 11 Nov 2021 08:38:49 -0800
Java Database Connection - JDBC Details
Overview of JDBC
JDBC (Java Database Connectivity) is a set of interface to connect database provided by Java language. The implementation of interface is called database driver in JDBC and is provided by major database manufacturers. The reason for this is that the user doesn't need to care about how the underlying implementation is imple ...
Posted by jigen7 on Thu, 11 Nov 2021 08:30:54 -0800
Servlet&HTTP&Request Notes
Servlet&HTTP&Request Notes
1. Architecture of Servlet
Servlet - Interface
GenericServlet - Abstract Class
HttpServlet - Abstract Class
GenericServlet: Default empty implementation of the rest of the Servlet interface, using only the service() method as an abstraction
When defining a Servlet class in the future, you can inherit t ...
Posted by selliott on Thu, 11 Nov 2021 08:13:56 -0800
1, Thread foundation of JUC (source level)
1. Java multithreading related concepts
1. Process
It is the second execution of the program and the unique unit of the system for resource allocation and scheduling. Each process has its own memory space and system resources
2. Thread
Multiple tasks can be executed in the same process. Each task can be regarded as one thread. Each p ...
Posted by dabas on Thu, 11 Nov 2021 03:03:07 -0800