Android–Gradle plug-in gradle-wrapper.properties

1. Android Studio version, Android Gradle plug-in version, Gradle version Android Studio uses Gradle to build code through the Android Gradle plug-in; After each upgrade of Android Studio, the Android Gradle plug-in is automatically updated, and the corresponding Gradle version will also change; Therefore, the following correspondence will be generated: (1) Correspondence between Android Studio […]

Use reflection to dynamically construct wrapper conditions (use reflection to obtain annotation values and entity class values)

Use reflection to dynamically construct wrapper conditions Entity class /** * api list query entity class * *@authorwys */ @Data public class SysApiQuery { private Long id; /** * api name */ @Query(type = QueryTypeEnum.EQUAL) private String apiName; /** * api path */ @Query(type = QueryTypeEnum.EQUAL) private String apiUrl; /** Starting time */ @JsonIgnore private […]

Binders and wrappers for callable objects

Callable object In C++, a callable object is a broad concept that covers any entity that can be called via the function call operator (). These objects include not only ordinary functions and member functions of a class, but also objects, which can be called like functions. Here are some types of callable objects in […]

Variable parameter template+lambda+function wrapper (adapter)+bind

Table of Contents variadic template introduce introduce How to expand parameter pack recursion comma expression overall use emplace introduce ?edit use Simulation implementation code Example lambda introduce introduce Format use Passing on parameters capture principle Example function wrapper (adapter) introduce introduce Format use bind introduce std::placeholders use Modify parameter position Pass fixed values for parameters […]

C++11 – wrappers and lambda expressions

Table of Contents 1. Background 2.lambda 1. Meet lambda 2.lambda expression syntax 3.lambda capture list description 3. Function objects and lambda expressions 4. Packager 1.function wrapper 2. Member functions of wrapper classes 5.bind 1.Adjust parameter position 2. Reduce function parameters 一.Background In C++98, if you want to sort the elements in a data collection, you […]

The use of mybatis-plus conditional constructor (*Wrapper)

1. Introduction In order to simplify operations, mybatis-plus introduces conditional constructors to simplify basic sql operations. There are two main types of conditional constructors used, one is the query conditional constructor (QueryWrapper), and the other is (UpdateWrapper). The main relationships between these conditional constructors are as follows: 2. Query condition construction (QueryWrapper and LambdaQueryWrapper are […]

C++ – wrapper – bind() function

Wrapper There may be various callable types in C++, such as function pointers, functors, lambdas, etc. With so many callable types, we will be confused when using them. Can we unify them? How about taking control? Function wrapper, also called adapter. Let’s look at an example first: template<class F, class T> T useF(F f, T […]

I’m so embarrassed that I didn’t use mybatisplus’ Wrapper well.

QueryWrapper/LambdaQueryWrapper/AbstractWrapper/Wrapper… One picture to understand the relationship diagram of each Wrapper class in mybatisplus Background The persistence layer of our springboot application is code generated using the jeecgboot framework. Among them, the mybatisplus version is 3.1.2. When optimizing the performance of the paging query code for transaction data, I rewrote the selectPage method of the […]