An online education system based on SpringBoot "open source"

1. Technical introduction Core technology: SpringBoot+mybatis;Front end: layui;Development tool: idea;Database: mysql5 7;Template engine: thymeleaf;Security framework: Spring security;Log framework: logback;Database connection pool: druid;Online editor: ckedit;Picture rotation component: jQuery swipes slider; 2. Function introduction The pro ...

Posted by SpanKie on Wed, 15 Dec 2021 13:39:37 +0100

Introduction to the usage of Java lambda expression. The algorithm is too important

import java.lang.FunctionalInterface; // this is functional interface @FunctionalInterface interface MyInterface{ // abstract method double getPiValue(); } public class Main { public static void main( String[] args ) { // declare a reference to MyInterface MyInterface ref; // lambda expression ...

Posted by elhama on Wed, 15 Dec 2021 11:18:34 +0100

In depth study of spring cloud gateway current limiting circuit

At present, Spring Cloud Gateway is the second most popular Spring Cloud project after Spring Cloud Netflix (in terms of stars on GitHub). It was created as a successor to Zuul agent in Spring Cloud series. The project provides API gateway for microservice architecture and is built based on reactive Netty and Project Reactor. It aims to provide ...

Posted by gullit on Wed, 15 Dec 2021 07:47:53 +0100

The result mapping of the introduction to Mybatis, are you right? Meituan architects explain Java development in depth

resultMap mapping What is resultMap? Simply put, it is a Map like structure that maps the fields in the database to the attribute fields in the JavaBean, so that one-to-one mapping can be achieved.How to write the above example using resultMap? As follows: <!--Create a resultMap mapping--> <resultMap id="patResultMap" type="com.xxx. ...

Posted by BRUm on Wed, 15 Dec 2021 05:42:17 +0100

Base64Utils is used quickly. Daniel summarizes himself. 500 pages of "Java growth notes"

Test example: public class Bese64Utils extends Base64Utils { public static void main(String[] args) { String str = "https://blog.csdn.net/weixin_42798851/article/details/118678116?spm=1001.2014.3001.5501"; // encode decode byte[] encode = encode(str.getBytes(StandardCharsets.UTF_8)); System.out.println ...

Posted by dark_destroyer on Wed, 15 Dec 2021 03:04:47 +0100

MyBaits introduction and conclusion, senior Java development engineer of Netease

trim tag Intercept string Prefix = "": prefix. Add a prefix to the following sql statements as a whole prefixOverrides = "": take out possible extra characters in front of the whole string Suffix = "": add a suffix to the whole suffixOverrides = "": take out the characters that may be used after t ...

Posted by Jas on Wed, 15 Dec 2021 02:51:32 +0100

Java CAS principle analysis, talk about those locks in MySQL database

`public class AtomicInteger extends Number implements java.io.Serializable { // setup to use Unsafe.compareAndSwapInt for updates private static final Unsafe unsafe = Unsafe.getUnsafe(); private static final long valueOffset; static { try { // Calculates the offset of the variable value in the clas ...

Posted by rocksolidhq on Wed, 15 Dec 2021 02:43:54 +0100

Condition source code analysis and waiting notification mechanism, interview questions for Java Senior Software Engineers

So we can see ConditionObject The waiting queue is managed by holding the head and tail pointers of the waiting queue. The main thing to note is Node Class reuse in AQS Medium Node Class, its node state and related attributes can be viewed[AQS Article on the implementation principle of]( ),If you read this article carefully, right condition ...

Posted by manishdugar on Wed, 15 Dec 2021 01:04:38 +0100

Summary of Java core programming (IV. exceptions and threads), senior Java Architect of Netease

1.3 default mechanism for exception generation and handling The default processing process for exception generation is parsing (you can understand it): By default, an exception object, ArithmeticException, will be automatically created in the exception code The exception will be thrown to the caller from the point in the method, and the ...

Posted by Saphod on Wed, 15 Dec 2021 00:06:14 +0100

Java operation is simpler than 99 multiplication table

Hello, welcome back, HAKUNA MATATA!!!When it comes to operations, you may immediately think of four operations of addition, subtraction, multiplication, division and "99 multiplication table". It was a nightmare to recite the "99 multiplication table" back then! After many years, my heart is still aching. However, learning t ...

Posted by jeffz2008 on Mon, 13 Dec 2021 15:25:49 +0100