This article of Gradle is enough to use the dependency and execution conditions of 04 task

task dependence and execution conditions When using maven, the sequence and dependency of compile/test/install are very clear. In the previous example, you can use gradle compile and gradle test to perform different tasks, but in fact, there is a dependency between these tasks, like we perform MVN in Maven What will be done before install? This ...

Posted on Mon, 06 Apr 2020 01:33:19 -0400 by Horatiu

Introduction and application of simple factory and factory method mode

Simple factory Purpose: provide the function of creating objects, and do not need to care about the specific implementation Scenes: creating objects Benefit: reduce the coupling between client and module (minimum knowledge principle) Code structure: public interface Api { } class ImplA implements Api { } class ImplB implements Ap ...

Posted on Mon, 06 Apr 2020 01:28:22 -0400 by foxden

Comments and Reflections - Review

Catalog annotation Built in annotations Meta annotation Custom annotation Reflection mechanism brief introduction Class Class Java memory Class loading process ClassLoader Reflection gets the structure information of the runtime class Creating objects dynamically Create objects by reflection (general) Create an object with constructor ob ...

Posted on Mon, 06 Apr 2020 01:09:04 -0400 by gumby51

Starting process of Zygote and System process

##init script start +------------+ +-------+ +-----------+ |Linux Kernel+--> |init.rc+-> |app_process| +------------+ +-------+ +-----------+ create and public server socket After the linux kernel is loaded, run the init.rc script service zygote /system/bin/app_process -Xzygote /system/ ...

Posted on Mon, 06 Apr 2020 00:41:46 -0400 by tdeez173

Project Actual Warfare - Online OJ

Online OJ Item Function: Similar to LeetCode and Niuke Online Answer System, the browser requests that the server can get all the test information, including the title number, Title name, Title difficulty. The user can select a question to answer. The server returns the title description information and the predefined code template. After the ...

Posted on Mon, 06 Apr 2020 00:17:10 -0400 by juschillinnow

pygame's airplane battle (6)

Preface: This chapter will realize: The realization of blood supply and bullet supply. Recovery of blood supply and bullet supply. Code optimization. Programming code: Module import: import pygame import time import random from pygame.locals import * Global variable: #global variable #window window_screen = ...

Posted on Mon, 06 Apr 2020 00:11:23 -0400 by leszczu

"starter recommendation" simple and efficient Excel export tool

EasyExcel EasyExcel is a simple and memory saving open source project of reading and writing Excel based on Java. In the case of saving memory as much as possible, it supports reading and writing 100M excel. 64M memory can read 75M(46W rows and 25 columns) of Excel in one minute. Of course, the speed mode can be faster, but the memory usage wil ...

Posted on Mon, 06 Apr 2020 00:08:20 -0400 by Uranium-235

Swagger configuration of spring boot

Swagger is a tool used to describe and test restful interface. As long as some description notes of classes and methods are added when defining restful interface, a page displaying interface definition can be obtained through simple configuration, and parameter submission test interface can also be set on the page (replacing some functions of p ...

Posted on Mon, 06 Apr 2020 00:05:33 -0400 by sparc-e

openGL Learning Notes - Frame Buffering

Function: Mainly used to store rendered data, that is, video memory.Geometric data (vertex coordinates, texture coordinates, and so on) and textures are rendered through a series of pipes to compute all the pixel points on the screen. They need a place to store them, which is the frame buffer.The data in the frame buffer is read by the displ ...

Posted on Mon, 06 Apr 2020 00:03:28 -0400 by gruzaw

Spring framework source codes Constants learning

Recently, I found a good tool to write when I was learning Spring source code, so I shared it In the AbstractPlatformTransactionManager class, use a String type name to get the value of the corresponding constant public final void setTransactionSynchronizationName(String constantName) { setTransactionSynchronization(constants.asNumber(constan ...

Posted on Sun, 05 Apr 2020 23:39:31 -0400 by Fredix