Spring Boot 2 practice: automatically configure different logical beans according to conditions
1. Preface
We often have different interfaces loaded according to conditions. For example, if you query the list of files in the directory, you will use the dir command of CMD under Windows, and you will use the ls command under Linux. Those familiar with Spring Boot auto configuration also know that Spring Boot can enable different configurat ...
Posted by kiran_ravi on Mon, 21 Oct 2019 05:08:13 +0200
Java serialization 43 - other considerations for accessing static methods, static keywords
I. other precautions
1. For methods with static, we said that we need to use the method of "class name", but in fact, we can use the method of "reference" to access this method.
package com.bjpowernode.java_learning;
public class D43_ {
public static void main(String[] args) {
Test3.test3();
...
Posted by hrichman on Sun, 20 Oct 2019 20:16:43 +0200
HttpTrace of spring boot admin shows input and output participation monitoring Redisson
Spring Boot admin (hereinafter referred to as SBA) integrates with Spring Boot and Spring cloud projects automatically in the way of starter, including Server side and Client side
SBA monitoring includes application basic information, logfile (online real-time browsing or download), JVM information (thread information, heap information, non he ...
Posted by NargsBrood on Sun, 20 Oct 2019 11:12:51 +0200
Tymeleaf common syntax: template fragment
Many pages in the system have a lot of public content, such as menus, footers, etc., which can be extracted and placed in a public page called "template fragment", and other pages can refer to this. Template snippet content.
I. definition of template fragment
It can be an html tag or a fragment can be defined using the th:fragment a ...
Posted by flexxall on Sat, 19 Oct 2019 22:46:14 +0200
WegGL 3D industrial Internet of things tunnel monitoring practice
Preface
It is very necessary to monitor the lane jam in the tunnel, the accident scene in the tunnel, display the current accident position in the tunnel and give prompt at the tunnel entrance. The main contents of this tunnel Demo include: lighting, fan, Lane indicator light, traffic signal light, information board, fire protection, fire alarm ...
Posted by brown2005 on Sat, 19 Oct 2019 12:22:58 +0200
React.createRef()/forwardRef() for React source parsing
I. React.createRef()GitHub: https://github.com/AttackXiaoJinJin/reactExplain/blob/master/react16.8.6/packages/react/src/ReactCreateRef.js
Effect:Get the DOM instance of the target element
Use:
import React from 'react'
export default class Father extends React.Completed{
constructor(props){
super(props)
this.father=React.createRef( ...
Posted by iyia12co on Tue, 15 Oct 2019 21:59:11 +0200
Little knowledge: introduction to the usage of classList and compatibility with IE8
Preface
Question: how can I use native js instead of element.addClass/removeClass("") to add a class name to the current element?
Answer: you can use the classList in js. It has several callable methods > > > add, remove, toggle, contains, replace, item, among which add / remove can ...
Posted by jeppers on Tue, 15 Oct 2019 17:24:21 +0200
Drag Data Loading by ReactHooks+ReactDnd
Drag to load API fields
Implement automatic loading of API by dragging a background API to Form with the mouse, so the fields become forms.Drag component uses react-dnd plug-in, data interaction and page updating are implemented by Hooks.Hooks Official Documents https://react.docschina.org/docs/hooks-intro.htmlReactDnd official document http:// ...
Posted by jrtaylor on Tue, 15 Oct 2019 09:16:11 +0200
Why Netty's FastThreadLocal is fast
Preface
Recently, when looking at the netty source code, I found a class called FastThreadLocal. JDK itself has a ThreadLocal class, so I can roughly think of this class is faster than jdk's own, where is the main speed, and why it is faster. Here is a brief analysis.
performance testing
ThreadLocal is mainly used in multi-threaded environm ...
Posted by v0id on Mon, 14 Oct 2019 13:53:46 +0200
XMLConfigBuilder Parsing Configuration File Started by MyBatis
Preface
XMLConfigBuilder is one of the subclasses of BaseBuilder, which parses MyBatis's XML and related configurations and saves them in Configuration. In this paper, the analytic process is analyzed according to the execution order, and the analytic principle of common configuration is mastered.
<!-- more -->
Use
Calling XML ConfigBu ...
Posted by shibobo12 on Mon, 14 Oct 2019 07:17:50 +0200