Resolved: resolved the problem of multiple timer conflicts in Spring Boot multithreading environment
Forwarding official account: IT Ranch
Tactical Analysis:
There must be more than one timer in the actual development project, which needs to be used in many scenarios, and the problem brought by multiple timers is how to avoid the conflict of multiple timers
Usage scenario:
Our order service generally has an order to be paid, which has a ti ...
Added by anoopmail on Mon, 03 Jan 2022 08:52:55 +0200
SpringBoot solves cross domain
SpringBoot solution cross domain, 3 solutions!
Problem background:
I have encountered cross domain problems in development and queried many solutions on the Internet. Here is a summary.
Introduction to CORS:
CORS is a W3C standard, The full name is "cross origin resource sharing". It allows the browser to send XMLHttpRequest reque ...
Added by tony-kidsdirect on Mon, 03 Jan 2022 08:24:55 +0200
@Add cache with Cacheable annotation
If you add, you have Clear cache.
@Cacheable cannot set the expiration time directly. It should be used in combination with @ CacheConfig to set the expiration time
Function description
@The Cacheable annotation is used on a method to indicate that the return result of the method can be cached. That is, the returned result of this method wi ...
Added by miz_luvly@hotmail.com on Mon, 03 Jan 2022 07:45:15 +0200
Using springboot to customize starter development
summary
Springboot changes the complicated configuration files of spring MVC into parametric configuration, which makes users feel great convenience. Therefore, if you only use the off the shelf spring boot function, there is not much technical requirement. Then, based on the principle of improving yourself and writing code as gracefully as po ...
Added by suncore on Mon, 03 Jan 2022 07:27:23 +0200
Actual deployment summary of Ruoyi front and rear end separated open source project - deployment test
This article is the second part of the introduction, packaging and deploying the project to the server, and modifying the relevant configuration.
192.168.38.132 -front end
192.168.38.133 -back-end
192.168.38.134 -back-end
The three servers create the / root/workspace directory respectively
1, Front end 192.168.38.132 deployment
Fir ...
Added by roxiroxi on Mon, 03 Jan 2022 04:26:52 +0200
Front and back end separation learning notes -- [route nesting, query form display]
You can refer to the API of learning ElementUI framework - > API for ElementUI framework
1. Route nesting
Study of the last note Administrator login permission assignment Click the operation menu on the left to generate a specific management form;
You can imagine that the basic layout of the open is like this
Here, several d ...
Added by forzatio on Mon, 03 Jan 2022 03:33:48 +0200
java server generates picture verification code and verification
The requirement is to add a picture verification code when sending SMS verification code.
1. Code implementation
Tool class for generating verification code pictures -- verifyutils java
package com.lmc.utils;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.LinearGradientPaint;
import java.awt.P ...
Added by Scud on Mon, 03 Jan 2022 02:34:03 +0200
Shiro study notes
Shiro core object
Subject is the subject. The external application interacts with the subject. The subject records the current operating user. The concept of user is understood as the subject of the current operation. It may be a user requested through the browser or a running program. Subject is an interface in shiro, which defines many meth ...
Added by sastro on Sun, 02 Jan 2022 22:09:38 +0200
Implementation of instant messaging between server and client based on Netty's WebSocket protocol and its problems
1, Introduction
Technology stack: Java: 1.8 SpringBoot: 2.2.2.RELEASE Netty: 4.1.32.Final
For basic understanding, refer to the following article: https://blog.csdn.net/DreamsArchitects/article/details/120177336
Current time: 17:02:38, December 31, 2021 As the last year of 2021, blog.
2, Question
2.1 start server mode
Previously, the ...
Added by jodie on Sun, 02 Jan 2022 13:47:06 +0200
Spring security implements login authentication
Implement AbstractAuthenticationToken custom authentication object
In the spring security Authentication process, the core object is Authentication, which is used to store various basic information of the subject (such as user name, password, Department, etc.) and Authentication information of the subject (such as interface permission). ...
Added by Scott_J on Sun, 02 Jan 2022 11:41:11 +0200