java design pattern Facade

Appearance mode is to solve the dependency between classes and family of classes. Like spring, you can configure the relationship between classes into a configuration file. Appearance mode is to put their relationship into a Facade class, reducing the coupling between classes. There is no interface involved in this mode. Look at the class diagr ...

Posted on Thu, 02 Apr 2020 12:51:39 -0400 by verycleanteeth

(6) Build dubbo distributed platform maven build config configuration project (2)

1. Create the mybatis-config.xml configuration file. The configuration is as follows: <span style="font-size: 16px;"><?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <! -- global parameters -- &g ...

Posted on Thu, 02 Apr 2020 12:14:32 -0400 by swampster

spring framework learning note 5: spring AOP example

1. guide Pack: Import these two packages in spring   Import another package (download online):   2. Prepare target objects: package service; public class UserServiceImpl implements UserService { @Override public void save() { System.out.println("Save user!"); } @Override public void delete() { System.out. ...

Posted on Thu, 02 Apr 2020 04:01:38 -0400 by MARIOPARTY53

2, SpringBoot -- configuration file description

1, Purpose of profile In project development, we often use configuration files to write some public information to the configuration, such as database configuration information, port configuration information, etc. Creating a spring boot project through IDEA will automatically generate a configuration file of application.properties. The conte ...

Posted on Thu, 02 Apr 2020 03:09:33 -0400 by Zero20two

Test the priority order of five AOP aspect notifications

Notification type In the process of programming based on Spring AOP, based on AspectJ framework standard, five types of notifications are defined in spring, which are respectively: Advance notice (@ Before). Return to notification (@ AfterReturning). Exception notification (@ AfterThrowing). Post notification (@ After). Surround notification ( ...

Posted on Thu, 02 Apr 2020 00:02:07 -0400 by datona

CentOS 7.4 install the latest version of svn remote server and open 3690 port to set up remote access

Personal blog: Open links 1. installation CentOS installs subversion from yum. $ sudo yum install subversion subversion is installed in the / bin directory: $ which svnserve /bin/svnserve Check that subversion is installed successfully. $ svnserve --version svnserve, version 1.7.14 (r1542130) compiled Nov 20 2015, 19:25:09 Cop ...

Posted on Wed, 01 Apr 2020 19:21:10 -0400 by sametch

Continue query based on Ignite

Knowledge preparation CQL (continuous query language) is similar to: Memory database + view + trigger solution. Simply put, once a qualified object enters the query result set, a callback function is executed. The implementation of this paper is based on the C/S mode, that is, the Client first queries the data from the Server acco ...

Posted on Wed, 01 Apr 2020 19:12:45 -0400 by MJH Mike

java sorting algorithm (5): fast sorting

java sorting algorithm (5): fast sorting Fast sorting is a very fast exchange sorting algorithm. Its basic idea is very simple. Take any data (such as the first data) from the data sequence to be sorted as the boundary value, and put all elements smaller than it to the left. All elements larger than it are on the right. After such a trip, the s ...

Posted on Wed, 01 Apr 2020 04:20:49 -0400 by jdashca

Application of ClassLoader isolation mechanism

GitHub We define the roles of the main classes: Spring classloader: when this class is set as the default classloader of the main thread, all subsequent classes will be loaded, and class loading scheduling will be performed (if the parent classloader is not loaded into this class, it will be handed over to ServiceClassLoader for loading) S ...

Posted on Wed, 01 Apr 2020 04:00:09 -0400 by mort

Spring MVC file upload & Multi file upload

MultipartResolver is not equipped by default in the Spring MVC context, so it cannot handle file upload by default. If you want to use Spring's file upload function, you need to configure MultipartResolver in the context. The configuration file in springmvc-config.xml is as follows: <bean id="multipartResolver" ...

Posted on Wed, 01 Apr 2020 01:33:05 -0400 by alex_funky_dj