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
Spring auto assembly Bean
Automatic assembly of beans can simplify our code. Here is an example. First, create three entity classes
package com.zhiying.pojo;
public class Cat {
public void shout() {
System.out.println("miao~");
}
}
package com.zhiying.pojo;
public class Dog {
public void shout() {
...
Posted by fotobleu on Sat, 11 Jan 2020 06:25:42 -0800
spring cloud gateway is configured with Zuul RateLimit current limiting
Reprinted from: https://www.jianshu.com/p/2fc92a929e8e
Narration
In order to prevent the API without token access from being called infinitely, some services need to be API restricted. It's like taking some interfaces for registration or sending verification codes. If they are called maliciously an ...
Posted by coalgames on Sat, 11 Jan 2020 00:54:04 -0800
Elastic search integrates spring boot to realize search function
Catalog
1 define data structure by mapping of es
Default data type of Es
The mapping structure of es is defined as follows
2 import Jest dependency
3. Import mysql data for es
Configure application.properties
Define the java class corresponding to es data structure
Insert mysql data into es
...
Posted by dubc07 on Sat, 11 Jan 2020 00:08:20 -0800
Spring web series RestTemplate 4xx/5xx exception information capture
200104 spring web series tutorialresttemplate 4xx / 5xx exception information capture
Recently, when using RestTemplate to access external resources, an interesting problem was found. Because the permission verification fails, the http code of 401 returned by the other party will also contain some exception prompt information in the returned ...
Posted by jsucupira on Fri, 10 Jan 2020 23:03:45 -0800
23 design modes: factory method mode
According to the different levels of abstraction, factory pattern can be divided into three types: simple factory pattern (also known as static factory pattern), factory method pattern described in this paper, and abstract factory pattern.
Advantages of factory mode:
It can make the code structure cle ...
Posted by mojodojo on Fri, 10 Jan 2020 21:31:45 -0800
[Mybatis Source Exploration]--- Interpretation of the Core Source of Mybatis Query Procedure--- mapper Call Method
Article Directory
1 Source Entry
Interpretation of core source code of 2 sqlSession.getMapper(...) method
2.1 What should be analyzed without looking at the source code
2.2 [Source Code Analysis] Get the MapperProxyFactory object corresponding to TUserMapper
2.3 [Source Code Analysis] Use dynamic pr ...
Posted by cpetercarter on Fri, 10 Jan 2020 17:37:17 -0800
Brief Analysis of RabbitMQ Principle of Spring Boot2.X Integrated Message Middleware
Catalog
1. A brief overview of the important role of RabbitMQ
2. A brief overview of important RabbitMQ concepts
3. Spring Boot Integration RabbitMQ
Preface
RabbitMQ is a message queue that is used to asynchronize and decouple applications, as well as to buffer and distribute messages.The most impor ...
Posted by Gorillas on Thu, 09 Jan 2020 18:45:40 -0800
Chapter 3: DefaultListableBeanFactory of spring bean (7)
Preface
DefaultListableBeanFactory is the last subclass of beanFactory system, the only operation class and the only implementation. DefaultListableBeanFactory inherits AbstractAutowireCapableBeanFactory and implements the ConfigurableListableBeanFactory interface.
Interpreting variables
allowBeanDefinitionOverriding variable
allowBeanDefini ...
Posted by anon_amos on Thu, 09 Jan 2020 11:00:04 -0800
SpringBoot is quick to start -- four: SpringBoot integrates Redis +SpringCache
Spring boot integrates redis + spring cache for caching
github source code: https://github.com/xivinChen/SpringBoot
1, Cache user
1. First, create the springboot redis cache module and copy the contents of the springboot restful API.
2. Modify the three-tier architecture, that is, add the service tier
Add the service.UserService interface, ...
Posted by wha??? on Thu, 09 Jan 2020 06:38:02 -0800