X. namenode working mechanism of HDFS

[TOC] I. fsimage and edit files 1. Basic concepts txid: namenode gives a unique id for each operation event (add, delete, and change operation), which is called txid. Generally, txid is automatically increased from 0. For each additional operation, txid is automatically increased by 1. fsimage: It is a mirror file of the metadata of namenode i ...

Added by p3rk5 on Thu, 17 Oct 2019 00:57:57 +0300

Custom xsd file operation in Spring

1 set the syntax format of html file xsd file Write xsd file according to the properties of POJO. for example <?xml version="1.0" encoding="UTF-8" ?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.zhangyh.com/schema/user" elementFormDefault="qualified"> <element name="user"> ...

Added by pleigh on Wed, 16 Oct 2019 17:33:00 +0300

IOC container for spring learning

IOC container IOC containers, sometimes called dependency injection (DI). Through the dependencies defined by the object itself, these dependencies are injected into the bean when it is created. This process is contrary to our normal design. We usually have a new object in the object, which is our program control management object. In spring, w ...

Added by FredAt on Tue, 15 Oct 2019 10:26:06 +0300

Spring Cloud OpenFeign: Declarative Service Calls Based on Ribbon and Hystrix

SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall abstract Spring Cloud OpenFeign is a declarative service invocation tool, which integrates Ribbon and Hystrix and has load balancing and service fault tolerance functions. This article will introduce its usage in detail. Feign introduction Feign is a decl ...

Added by samshel on Sun, 13 Oct 2019 21:25:16 +0300

Introduction and use of go web framework gin

This is the first article introduced and used by gin. I. brief introduction Gin's official statement is as follows: Gin is a web framework written in Go (Golang). It features a martini-like API with much better performance, up to 40 times faster thanks to httprouter. If you need performance and good productivity, you will love Gin. Official ...

Added by ValdouaD on Sat, 12 Oct 2019 13:56:27 +0300

Android custom controls: text controls of adaptive size

demand Adaptive size text: Design sketch: In project development, developers lay out some pages with text according to a set of sizes provided by UI personnel. Often less consideration will be given to some data limits, resulting in the problem of screen adaptation. For example: Text (or numeric) length is variable, such as experience value, nu ...

Added by FredFredrickson2 on Sat, 12 Oct 2019 03:46:12 +0300

spring-aop notification example

Application of Spring AOP Notification xml version Create a new maven project Project Structure Diagram pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo ...

Added by ngolehung84 on Fri, 11 Oct 2019 22:45:17 +0300

ActiveMQ Learning Summary - Operational Operation 02

I believe you have a general idea of ActiveMQ through your last blog post. So this blog will lead you step by step to actually operate our ActiveMQ. The main contents of this paper are as follows: 1. Introduction of ActiveMQ Terminology and API 2.ActiveMQ Text Message Processing 3.ActiveMQ Object Message Processing Now that we have to le ...

Added by magic2goodil on Fri, 11 Oct 2019 16:47:26 +0300

Implementation of SSO with Spring Cloud-OAuth2 and zuul

Preface After climbing for two days, the pit finally came up. It was very simple to see what others wrote. When they wrote, they had various problems. There were many SSO articles on the Internet, and when they wrote, they had various problems (they were too dishy). Make a note. It's easy to check later. For the OAuth2 Authentication and Author ...

Added by gbrown on Fri, 11 Oct 2019 14:13:16 +0300

5. springboot is simple and elegant to realize mail service

Preface Sprboot's project has not been updated for half a month since it was put down. Finally, I can write happily when I am free. Before we configure mybatis with multiple data sources, we need to do an email service. For example, when you register, you need to enter a validation code to verify. This validation code can be sent by mail. Of co ...

Added by Pjack125 on Fri, 11 Oct 2019 13:41:06 +0300