Details of Bean Wrapper and Property Descriptor

Every sentence For thousands of years, no one has asked for breakfast. Do you know why? Relevant Reading [Xiaojia Spring] Talk about data conversion in Spring: Converter, Conversion Service, TypeConverter, Property Editor[Little Spring] Talk about Data Binding in Spring - the Use of Property Accessor and DirectField Accessor Interested in Sp ...

Posted on Thu, 18 Jul 2019 20:48:42 -0700 by dtasman7

Build a simple SSM framework with idea: (3) Configure spring+mybatis

Before that, please check: Build a simple SSM framework using idea: (1) Create maven projects using idea Build a simple SSM framework with idea: (2) Configure spring MVC   1 Configure spring and mybatis integration files The integration of spring and mybatis is divided into three steps: (1) configuring database, (2) configuring SqlSession Facto ...

Posted on Tue, 16 Jul 2019 12:40:51 -0700 by bmcewan

How to Build Distributed Engineering in maven--Integrating SSM

1. Configure mybatis resource spring in camel-manger-web image.png mybatis package SqlMapConfig.xml <?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> <!-- Configure ...

Posted on Mon, 15 Jul 2019 11:24:31 -0700 by enoyhs

springBoot Event Mechanism of Observer Model

The event mechanism in ddsspring is applied to the observer pattern in the design pattern. The observer pattern has two concepts: 1. the observer and the observee. 2. The observer can receive the corresponding action. Without analyzing design patterns, learn how to actually develop event mechanisms in spring and how to use scenarios. Event mec ...

Posted on Mon, 15 Jul 2019 11:21:40 -0700 by cbcampbell

Spring Boot Dry Goods Series: (6) Static Resources and Interceptor Processing

Preface In this chapter, we introduce SpringBoot's support for static resources and a very important class, WebMvcConfigurerAdapter. text In the previous section, we also briefly introduced the default support for static resources in SpringBoot. Today, we describe in detail the default support and how to implement the custom extension. Defau ...

Posted on Sun, 14 Jul 2019 10:06:05 -0700 by trdesigns

Implementation of Spring MVC redirection transfer parameters

SpringMVC To pass parameters to the page in a spring controller, just configure the view parser, add parameters to the Model, and use el expression to get the parameters on the page. However, using forward mode, the browser's address bar is unchanged. If the browser F5 refreshes at this time, it will cause the form to be submitted repeatedly. ...

Posted on Sat, 13 Jul 2019 15:18:37 -0700 by vigiw

Notes on ReentrantLock Implementation Principles

java.util.concurrent.locks.ReentrantLockExclusive: adj. (individual or collective) exclusive, exclusive, exclusive; exclusive; unwilling to accept new members (especially lower social strata); high-end; luxurious; advanced Reentrant: reentrant; reentrant; reentrant; reentrant Everything starts with Thread threads Exclusive thread exclusive Ow ...

Posted on Thu, 11 Jul 2019 12:23:19 -0700 by rameshmrgn

Several implementations of java singleton pattern

The singleton pattern is used to ensure that only one instance of a class is created during the run time of the class. In addition, the singleton pattern provides a globally unique access point to the class instance, which is the getInstance method. Regarding the singleton pattern, no matter what implementation method is adopted, it only cares ...

Posted on Thu, 11 Jul 2019 12:16:27 -0700 by stallingjohn

How do I implement distributed ID s using MongoDB+Springboot?

How do I implement distributed ID s in SpringCloud distributed systems using MongoDB? 1. Background How to implement distributed IDS and search for relevant data will generally give you these solutions: Use database self-incrementing Id Use reids incr command Use UUID snowflake algorithm for Twitter Generating unique ID s using zookeeper Objec ...

Posted on Wed, 10 Jul 2019 10:19:49 -0700 by Bendude14

Mybatis: A Redis cache implementation

Preface This paper introduces an implementation of mybatis redis cache, using the following examples: @Repository public interface UserDao { @Cache(prefix="user:") @Select(...) public User findUserById(int userId); } By using Cache annotations to label which database access (select) needs to be cached, the prefix property sets the R ...

Posted on Wed, 10 Jul 2019 10:01:54 -0700 by tucker