Common design patterns in Java framework

Article directory Preface 1. What is design pattern 2. Java reflection technology 2.1 building objects by reflection 2.2 reflection method 2.3. Example 3. Dynamic agent mode 3.1. JDK dynamic agent 3.2 CGLIB dynamic agent 3.3 interceptor 3.4. Example 4. Responsibility chain model 4.1. Example 5. O ...

Posted by rickaclark on Fri, 21 Feb 2020 20:55:30 -0800

Take you by hand to read the Mybatis Source Execution

Preface As mentioned in the previous article How MyBatis builds configuration classes Yes, I also said that MyBatis is mainly divided into two phases in the running process, the first is building, the second is executing, so this article will take you to see how MyBatis goes from building to executing our first SQL statement.This part of the co ...

Posted by rorobobo on Fri, 21 Feb 2020 19:46:42 -0800

JAVA Foundation - Dynamic Proxy for JDK Implementation

Dynamic Proxy in JAVA The difference between dynamic proxy and static proxy classes is that dynamic proxy can dynamically create proxy classes while the program is running, execute proxy class methods, and run extended methods called by proxy classes. Dynamic Proxy for JDK Implementation ​ The dyna ...

Posted by xpherism on Fri, 21 Feb 2020 17:51:28 -0800

Notes for MappingJackson 2HttpMessageConverter

Handle conversion of Date type fields to timestamps in Databases There are two ways to solve the date conversion Json problem: 1. (Not recommended) Local modification, custom annotation to convert date type to Date type. 2. (strongly recommended) Global modification, configure in XML (Spring MVC) or in Application.Java startup classes (Spring b ...

Posted by bing_crosby on Fri, 21 Feb 2020 08:30:05 -0800

C++ Regular Expression regex Initial Exploration and Stepping Points

Preface Previous developments required string matching filtering, which involved the function of regular expression.This article is a note taken by someone about the regex, a c++ regular expression library, and is welcome to correct any errors. Introduction to Regex Library Regex started with c++ 11. c++ regular expressions provide the foll ...

Posted by geo__ on Fri, 21 Feb 2020 08:14:26 -0800

Solution to the problem that the toolbar button fails after the table of layui is reload ed

After the table in layui uses the toolbar, the buttons on the toolbar will fail when the table is refreshed. The reason is that after the table is reloaded, there is no trigger event for binding toolbar buttons. Therefore, you only need to rebind the binding events of all buttons after the initialization of the table and after the refresh of ...

Posted by stiduck on Fri, 21 Feb 2020 07:47:07 -0800

MySQL high availability MHA deployment

At present, MHA (Master High Availability) is a relatively mature solution in the aspect of MySQL high availability. In the process of MySQL failover, MHA can automatically complete the database failover operation within 0-30 seconds, and in the process of failover, MHA can guarantee the consistency of data to the greatest extent, so as to ach ...

Posted by KenGR on Fri, 21 Feb 2020 07:39:14 -0800

How to call Ali SMS in springcloud project

Catalog premise Build SMS micro service 1. Introduce pom dependency 2. Preparation of yml documents 3. Create a new guide class 4. Create a new read configuration class 5. Create a new tool class (integrated Alibaba cloud code) 6. Create a new message listening class test   premise   ...

Posted by gibs on Fri, 21 Feb 2020 07:31:55 -0800

[Pyecharts visual sharing] popular walking routes in Hangzhou

Preface This paper includes the following contents: Popular walking routes in Hangzhou Gradient scatter All are examples officially provided by eckarts. This article will implement them through Pyecharts. Popular walking routes in Hangzhou Because Baidu map needs to be called in the code, you nee ...

Posted by pandu345 on Fri, 21 Feb 2020 07:31:38 -0800

2020.2.21Menu and PopupWindow

menu menus and windows System menu OptionsMenu Code display Effect display Matters needing attention Context menucontextmenu Code display Effect display Matters needing attention Pop-up Menu Code display Effect display PopupWindow window Code display Effect display Matters needing attention ...

Posted by LanHorizon on Fri, 21 Feb 2020 07:15:11 -0800