Design mode summary

Through encapsulation, inheritance and polymorphism, the coupling degree of the program is reduced, making the program more flexible, easy to modify and easy to reuse Simple factory public class Operation { public double NumberA { get; set; } public double NumberB { get; set; } public virtual double GetResult() { ...

Posted by vanzkee on Tue, 16 Jun 2020 20:45:41 -0700

Chapter 2 Introduction to MyBatis

Simple Edition Create a test table Create the corresponding JavaBean Create mybatis configuration file and sql mapping file test MyBatis operation database Create MyBatis global profile The global configuration file of MyBatis contains settings and properties information, such as database connection pool information, which affect MyBatis' ...

Posted by sumolotokai on Tue, 16 Jun 2020 20:27:06 -0700

File IO programming under Linux

Linux system call refers to a set of "special interfaces" provided by the operating system to user programs through which user programs can obtain special services provided by the operating system. To better protect kernel space, programs are divided into kernel space and user space, which ru ...

Posted by locomotive on Tue, 16 Jun 2020 18:34:54 -0700

HashSet expansion mechanism wastes much more time and space than you think

One: Background 1. Storytelling Since this pure memory project entered the big client, I am now very sensitive to memory and CPU, run a little bit of data memory up and down a few G s, especially insecure, always want to grab a few dump s with windbg to see which one is caused, is my code or my colleague's code?Many old friends who have read my ...

Posted by kulin on Tue, 16 Jun 2020 18:09:34 -0700

SpringBoot send mail from multiple email sources

preface                                 . Realization ideas Spring boot starter mail will spring.mail.xxx The related configuration automatically configures JavaMailSender. But only a s ...

Posted by Xyox on Tue, 16 Jun 2020 01:11:25 -0700

What are jquery event processing -- Le byte front end

Jquery events ready load event ready() is similar to the onLoad() event ready() can write multiple and execute in order $(document).ready(function() {}) is equivalent to $(function() {}) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ready event</title> <script src ...

Posted by Topsy Turvey on Tue, 16 Jun 2020 00:18:49 -0700

Backtracking of divide and conquer -- recursion and divide and conquer

recursion The programming skill of program calling itself is called recursion public static void show(){ show(); } It usually transforms a large and complex problem into a smaller problem which is similar to the original problem. The recursive strategy only needs a small number of programs to ...

Posted by mcdsoftware on Mon, 15 Jun 2020 23:03:45 -0700

Java--JDBC database connection pool

Java--JDBC database connection pool Blog description The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you! concept In fact, it is a container (Collection) for database connection. A ...

Posted by luke_barnes on Mon, 15 Jun 2020 22:21:15 -0700

Java learning_ 08_GUI programming

Java learning_ 08_GUI programming GUI programming 1. Introduction 2. Introduction to AWT 2.1 introduction to AWT 2.2 components and containers 2.3Frame 2.4 Panel 2.4.1FlowLayout 2.4.2 BorderLayout 2.4.3 GridLayout 2.4.4 layout exercise 2.5 event monitoring 2.6 graphics 2.7 mouse event adapter 2.8 ...

Posted by varghesedxb on Mon, 15 Jun 2020 20:05:03 -0700

interface design principles using Golang

Interface interface Interface is one of the basic features of GO language. It can be understood as a type of specification or convention. It's different from java and C ා in that it doesn't need to show that it implements an interface. It doesn't inherit or subclass or "implements" keywords. ...

Posted by maxonon on Sun, 14 Jun 2020 22:21:01 -0700