Document deletion for the SpringBoot series tutorial Solr

Document deletion for Solr, 200114-SpringBoot series tutorial The previous Search tutorial did not continue at the beginning, and now it is picked up again, at least to complete the basic operation posture of CURD; this article focuses on how to delete data <!-- more --> I. Configuration Before introducing demo, you need to install sol ...

Posted by rougue on Wed, 15 Jan 2020 18:09:21 -0800

Example of using redis in spring boot

1. Start by creating a spring boot project. See the following links for a way to create a spring boot project:  https://blog.csdn.net/liutong123987/article/details/79385513 2. Add the following configuration to the pom.xml file that you just created the project <dependency> <groupId>org.springframework.boot ...

Posted by splitinfo on Wed, 15 Jan 2020 08:07:13 -0800

How do beanautils copy lists?

Background We may often transform data between DO, Model, VO layer data: Entity corresponds to the data structure of persistence layer (generally the mapping model of database table); The Model corresponds to the data structure of the business layer; VO is the data structure that the Controller interacts with the client. For example ...

Posted by smook on Wed, 15 Jan 2020 00:22:10 -0800

Spring IOC -- dependency injection

Dependency injection in spring IOC role: reduce the coupling between programs (dependency) Dependency management: to be maintained by spring (objects of other classes are needed in the current class, provided by spring, we only need to explain in the configuration file) Dependency maintenance: depende ...

Posted by superstar on Tue, 14 Jan 2020 23:37:15 -0800

Getting started with Spring Boot Security

1, Spring Boot Security integrates OAuth2 to design security API services OAuth is an open network standard about authorization, which is widely used all over the world. The current version is version 2.0. This article focuses on the implementation of OAuth2 by Spring Boot project. If you don't know ...

Posted by sovtek on Tue, 14 Jan 2020 23:24:43 -0800

High concurrent seckill Service layer

Design of Service layer Create the required package Service package: store the interface and implementation class of service exception package: store some exceptions of service (repeat seckill, close seckill, etc.) Dto package: it also stores data. The difference between dto and entity is that ...

Posted by dalecosp on Tue, 14 Jan 2020 21:09:40 -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

How to use template + factory design mode intelligently to realize asynchronous callback in aggregate payment platform

Asynchronous callback process Parsing message (verification signature) Log collection (same) If the message is parsed successfully, the payment status will be changed to succeeded. Different payment results will be returned Template method design pattern Define the whole skeleton in advance ...

Posted by jassh on Tue, 14 Jan 2020 19:01:44 -0800

Memory-based authentication for SpringBoot integration with SpringSecurity

Memory-based authentication for SpringBoot integration with SpringSecurity (1) In the first tutorial, we simply learned how to use SpringSecurity, added dependencies, and added a few lines of configuration to the application.yml file to achieve a basic login authentication. The default configuration ...

Posted by FeeBle on Tue, 14 Jan 2020 17:41:47 -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