Mybatis Series Textbook - related concepts - delayed loading

Step 1: run first, see the effect, and then learn Step 2: imitation and troubleshooting Step 3: one to many based on annotation Step 4: add log Step 5: only query the classification without obtaining products Step 6: add the configuration of delayed loading Step 7: only query the classification without obtaining products Step 8: you can ...

Posted by agriz on Mon, 23 May 2022 16:49:16 +0300

[Design Pattern]Template Method Pattern

Template method pattern Introduction The template method pattern is a simple and commonly used design pattern. It is a code reuse technology based on class inheritance. Its structure only has the inheritance relationship between the base class and the derived class. A template method is a concrete method that gives a top-level logical flow fra ...

Posted by JonathanS on Sun, 22 May 2022 20:11:21 +0300

Java Basics (JavaSE) summary 07 - object oriented

Stage I: JavaSE learning 07 1. Comparison of object-oriented and process oriented ideas: * * process oriented: * * is a process centered programming idea. Each step of realizing the function is realized by yourself * * object oriented: * * is an object-centered programming idea, which realizes specific functions by commanding objects Relationsh ...

Posted by barteelamar on Sun, 22 May 2022 09:05:50 +0300

Spring Security rights management system combat - 2. Implementation of logs, interface documents, etc.

Series catalog Spring Security rights management system combat - 1. Project introduction and development environment preparation Spring Security permission management system combat - 2. Implementation of logs, interface documents, etc. SpringSecurity rights management system combat - three, the main page and interface implementation SpringSecur ...

Posted by MattDunbar on Sun, 22 May 2022 07:57:28 +0300

Spring MVC + Vue project personal health information management system

Get the source code at the end Development language: Java Development tool: IDEA/ Eclipse Database: mysql5 seven Application service: Tomcat7/Tomcat8 use framessm+vue JDK version: jdk1.0 eight Preface introduction System management will also carry out overall intelligent operation through computers. There are many management and ...

Posted by Daveyz83 on Sun, 22 May 2022 02:18:24 +0300

Error handling in Go multi process concurrent environment

introduction In Go language, we usually use panic and recover to throw and catch errors. This pair of operations has no problem in a single coprocess, but in a multi coprocess, imagine the following two problems. Suppose we now have two processes: If there is A panic in process A, will process B die because of the panic in process A? If A pani ...

Posted by SUNNY ARSLAN on Sat, 21 May 2022 18:14:01 +0300

23 design patterns of Java -- II. Singleton pattern

The source code is in mine github and gitee Get in introduce Singleton Pattern is one of the simplest design patterns in Java. This type of design pattern is a creation pattern, which provides the best way to create objects. This pattern involves a single class that is responsible for creating its own objects while ensuring that only a single o ...

Posted by Kunax on Sat, 21 May 2022 05:12:22 +0300

Invest in a milk tea shop and coffee shop (code implementation) [the web page can be modified by yourself]

catalogue 1 investment 2 coffee shop code display 2.1 ideological source 2.2? Pictures and videos 2.3 code 2.4 write at the end? 1 investment **There is only one criterion for real investment, that is, whether it is creating real value and whether this value is beneficial to the overall prosperity of society** Adhering to this standar ...

Posted by solar_ninja on Fri, 20 May 2022 23:52:30 +0300

To understand the Volatile keyword, in fact, it is enough to read this article, which is very detailed

foreword volatile is a lightweight synchronization mechanism provided by the Java virtual machine. What is the role of the volatile keyword? Two functions: 1. Ensure that the shared variable modified by volatile is visible to the total number of threads, that is, when a thread modifies the value of a shared variable modified by volatile, the ne ...

Posted by c4onastick on Fri, 20 May 2022 19:43:48 +0300

Improve Spring Boot REST API error handling

introduction Spring Boot provides an excellent exception handling mechanism. The default implementation of ErrorController is good at catching and handling exceptions. In addition, you can also implement @ExceptionHandler yourself to catch and handle specific exceptions. However, there is room for improvement here: Even if a custom @Exceptio ...

Posted by MattWeet on Fri, 20 May 2022 18:31:37 +0300