Seven principles of design mode

In the process of writing our call later, we will face from coupling. Cohesion and maintainability, scalability, reusability, flexibility and other challenges, design patterns to make the program have better: Code reusability (i.e. code with the same function, not written many times) Readability (i.e. ...

Posted by AwptiK on Wed, 15 Jan 2020 03:46:08 -0800

Jmeter calls Dubbo interface

Jmeter test Dubbo interface Preface dubbo Jmeter TestNG Spring This article introduces two ways to use jmeter to test dubbo interface Call through the way of jmeter secondary development (jar) (recommended, with requirements for coding ability) Call through JMeter plugins Dubbo Call through ...

Posted by magnetica on Tue, 14 Jan 2020 20:12:48 -0800

ShiroFilterFactoryBean, a key bean for the integration of shrio and spring

1. Let's first look at the inheritance relationship of ShiroFilterFactoryBean public class ShiroFilterFactoryBean implements FactoryBean, BeanPostProcessor The FactoryBean interface is implemented, which is an important interface in spring, so let's take a look at the interface methods implemented by t ...

Posted by chreez on Tue, 14 Jan 2020 02:04:44 -0800

mybatis plug-in development

We start from six aspects: plug-in configuration, plug-in writing, plug-in operation principle, plug-in registration and interception time, initialization plug-in, paging plug-in principle. 1. Plug in configuration Mybatis plug-ins are configured in the configuration. During initialization, these plug ...

Posted by Frame on Mon, 13 Jan 2020 02:54:49 -0800

One click crawling result of Java crawler and save it as Excel

One click crawling result of Java crawler and save it as Excel Save crawling results as an Excel table There is no official tutorial for exporting Excel. Here I will send a tutorial for exporting to Excel Guide bag I like to use Gradle because of my hobbies, so I'll use the Gradle configuration here //Reptile pack compile group: 'us.codecraft', ...

Posted by awais_ciit on Sun, 12 Jan 2020 07:17:13 -0800

Tomcat installation and optimization

Tomcat server is a free open-source Web application server, which belongs to lightweight application server. It is widely used in small and medium-sized systems and concurrent users in many occasions, and is the first choice for developing and testing JSP programs. Generally speaking, Tomcat, like apache or Nginx web servers, has the ability t ...

Posted by Azkoyen on Sun, 12 Jan 2020 05:46:01 -0800

Single machine multi instance configuration of Tomcat

Sometimes you need to deploy multiple Tomcat on a server, and distinguish them through different ports, such as reverse proxy. But I don't want to simply copy tomcat, which is not convenient for future upgrade or management. At this time, I need to configure a single machine with multiple instances o ...

Posted by yurko on Sun, 12 Jan 2020 03:19:57 -0800

Basic knowledge and understanding of jsp

Introduction: JSP is the full name of JavaServer Pages. Like servlet Technology, JSP is a technology defined by SUN company for developing dynamic web resources. The biggest feature of JSP technology is that writing JSP is like writing html, but: Compared with html, html can only provide static da ...

Posted by gregolson on Sat, 11 Jan 2020 21:56:51 -0800

Problems caused by improper use of HttpMessageConverter and its principle and configuration

Article directory Two questions HttpMessageConverter function HttpMessageConverter matching rule HttpMessageConverter initialization sequence diagram Custom HttpMessageConverter Solve the problem RestTemplate NPE Text / painquoted Two questions spring boot RestTemplate unexpectedly reports nu ...

Posted by TreeNode on Sat, 11 Jan 2020 06:52:25 -0800

POI tool operation excel encapsulation excel export tool class based on annotation

POI is often used to export excel, but if you have to write your own every time you export, it will be more troublesome, and the code is basically repeated. So recently, I spent a little time and studied. According to the annotation and reflection technology, I wrote a tool class for POI to export ex ...

Posted by davieboy on Sat, 11 Jan 2020 06:45:19 -0800