spring boot advanced - cache, message
1. Cache
1.1JSR-107
Original quotation: Profiling cache series - familiar with JSR-107 JAVA cache specification
What is JSR-107?
JSR is the abbreviation of Java Specification Requests, which means Java specification proposal. On October 26, 2012, the JSR specification committee released the first early draft of JSR 107 (JCache A ...
Posted by scnov on Sat, 18 Dec 2021 23:13:58 +0100
Employee attendance system
Requirements:
1, User management 1. User list List fields: name, login name, gender, mobile phone number, salary, position and role List buttons: edit, enable, disable, reset password Search criteria: user name, status (enabled or disabled) Top button: Add User Import, export 2, Attendance management 1. Clock in Buttons: clock in at work (8:00 ...
Posted by phpology on Sat, 18 Dec 2021 17:59:48 +0100
Design pattern - the prototype model is simple and easy to understand
Prototype mode
1.0 definitions
Using an instance that has been created as a prototype, create a new object that is the same or similar to the prototype by copying the prototype object. Here, the prototype instance specifies the kind of object to create. Creating objects in this way is very efficient, and you don't need to know the details ...
Posted by ctoshack on Sat, 18 Dec 2021 17:49:28 +0100
Spring Boot builds a web project
1, The main features of Spring Boot are:
Create an independent Spring application to provide a very fast and widely accepted entry experience for all Spring developers Directly embedded in application servers, such as tomcat, jetty, underow, etc; There is no need to deploy the war package Provide fixed initiator dependency to simplify componen ...
Posted by vince81 on Sat, 18 Dec 2021 08:52:14 +0100
Simple introduction to spring framework
Getting to know spring
Two advantages of spring framework:
1.== Simplified development = = simplifies the complexity of enterprise development
2.== Framework inheritance = = effectively integrates other mainstream frameworks to improve operation and development efficiency
Core id ...
Posted by Lagreca on Sat, 18 Dec 2021 06:20:34 +0100
Online education - instructor management interface development, Swagger2 introduction, unified log processing, 07 unified exception processing
Development of online education lecturer management interface
01 - instructor management module configuration and generation code
1, Instructor management module configuration
1. Create a configuration file in the service edu module under service
Create the file application. In the resources directory properties
# Service port
server.por ...
Posted by AlexRodr on Sat, 18 Dec 2021 06:18:37 +0100
MyBatis - development using annotations
**MyBatis - development using annotations**
8, Using annotation development
1. Interface oriented programming
In real development, interface oriented programming is often chosen;Root cause: decoupling, scalability, improved reuse. In layered development, the upper layer does not care about the specific implementation. Everyone abides by ...
Posted by newman on Sat, 18 Dec 2021 03:56:38 +0100
Spring transaction and transaction abstraction, summary of basic Java knowledge
The basic steps for using a JDBC transaction are as follows:
@Test
public void testTX(){
String url = "jdbc:mysql://127.0.0.1:3306/test";
String username = "root";
String password = "1234";
String sourceUserId = "leo";
String desUserId = "xnn";
int money = 500;
Connection connection = null;
try {
//1. ...
Posted by Syranide on Sat, 18 Dec 2021 02:30:20 +0100
Use AOP section to print the operation of each interface in the project
1. Foreword
AOP aspect technology, you should know, is one of the main functions of the Spring framework.
AOP aspect has a wide range of uses, one of which is to print the operation log and operation time of interface methods.
Log is very important for a project. It is not only helpful for error adjustment, but also an important data source ...
Posted by markmh84 on Sat, 18 Dec 2021 02:11:26 +0100
Usage details of Spring Data Redis
Introduction to Spring data redis
Spring data redis is a part of the spring family. It provides access to redis services through simple configuration in srping applications, and highly encapsulates the underlying development packages of reids (Jedis, JRedis, and RJC)
About key
1. Delete a single key
//Delete key public void delete(Strin ...
Posted by limitedreality on Sat, 18 Dec 2021 01:48:07 +0100