[SpringBoot Basic Series] Implement a custom configuration loader (application)

[SpringBoot Basic Series] Implement a custom configuration loader (application) The @Value annotation is provided in Spring to bind configurations so that they can be read from the configuration file and assigned to member variables; sometimes, our configurations may not be in the configuration file, if they existDb/redis/other files/third-p ...

Posted by McManCSU on Thu, 07 May 2020 04:00:28 +0200

RxJava2 for andorid jar/library source parsing

Catalog: andorid jar/library source code parsing  RxJava2: Role: Optimize logical processes by providing an architecture that provides a model for observers and subscribers.Suitable for complex and multi-data conversion and long processes. Chestnuts: Define three object classes public class ResultInfo { public int code; public String ...

Posted by qteks200 on Wed, 06 May 2020 00:37:28 +0200

V-LOAM source code analysis

For reprint, please indicate the source: This article is from zhch Pan's blog http://www.cnblogs.com/zhchp-blog/   This blog is the source code reading work I did before when I did the project. po went to the Internet to help others better understand the V-LOAM project implementation. Some local codes have been modified, which may be differen ...

Posted by designrandom on Tue, 05 May 2020 23:35:31 +0200

golang validates the data format of struct field

Suppose we have the following structure: type User struct { Id int Name string Bio string Email string } We need to verify the validity of the fields in the structure: · the value of Id is in a range. · the length of Name is in the range of none. · Email format is correct. We might writ ...

Posted by brent123456 on Mon, 04 May 2020 08:10:43 +0200

Hybrid App knowledge point collection

Native Webview knowledge: 1: Registration related authority <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 2:webview common methods goBack() //Back off go ...

Posted by MorganM on Mon, 04 May 2020 01:33:41 +0200

45 Three.js extrude geometry

brief introduction The. Tubegeeometry stretches a tube along a 3D style curve (the. Catmullromcurve3 object). Simplest implementation var tubeGeometry = new THREE.TubeGeometry(path,segments,radius,radiusSegments,closed); Description of relevant parameters attribute Required or not describe path yes This property specifies t ...

Posted by battlesiege on Sun, 03 May 2020 22:49:51 +0200

Vue state management Vuex

1. Overview As a plug-in, Vuex manages and maintains the component state of the whole project.   2. Install vuex cnpm i --save vuex   3. Use of vuex github address: https://github.com/MengFangui/Vuex new Vue({ el: '#app', router: router, //Use vuex store: store, render: h => { return h(App) } ...

Posted by Gurzi on Sun, 03 May 2020 22:22:07 +0200

Change Actionbar, use of Toolbar

1, Change style First, change the style of the system to the style without ActionBar, set the color of the theme, and then reference the style. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark ...

Posted by sander_ESP on Sat, 02 May 2020 21:06:57 +0200

The effect of a simple rolling number

1. Renderings 2. Custom attributes textColor font color textSize font size Time displayed in duration text 3. Instructions Step 1. Add it in your root build.gradle at the end of repositories: allprojects { repositories { ... maven { url 'https://jitpack.io' } } ...

Posted by r3drain on Thu, 30 Apr 2020 15:14:46 +0200

Flutter writes an iOS style address book

This article mainly introduces how to use the Cupertino style control of Flutter to write an iOS style address book, as well as the problems encountered in the process and solutions. When you write apps with Flutter, you will generally use material style controls. Because material style controls are rich, but they will appear Android flavor on ...

Posted by Shamrox on Tue, 28 Apr 2020 22:09:31 +0200