FlexboxLayout - Single / multiple

FlexboxLayout is an Android extension launched by Google Reduced layout (stream layout) official project address https://github.com/google/flexbox-layout FlexboxLayout is a control that I use a lot in my development, especially for the item layout with variable width and height instead of Recycleview, which well meets my requirements and is ...

Posted by 88fingers on Tue, 30 Jun 2020 09:44:35 -0700

Java process control 03 -- 04 ~ ~ compile and decompile

catalog: 1. User interaction Scanner 2. Sequential structure 3. Select structure 4. Cyclic structure 5,break & continue 6. Practice 2, Sequential structure The basic structure of JAVA is sequential structure. Unless otherwise specified, it will be executed in sequence sentence by sentence. Sequen ...

Posted by tuuga on Tue, 30 Jun 2020 01:28:19 -0700

centos7 uses docker to build the running environment and deploy jar

*First, there is a clean CentOS 7 environment 1. To install docker, you need to use Yum to pull it, so get the yum source first. yum install -y yum-utils device-mapper-persistent-data lvm2 Add docker warehouse location for yum source yum-config-manager --add-repo https://download.docker.com/linux/cento ...

Posted by czambran on Tue, 30 Jun 2020 00:28:51 -0700

Several special ways of Spring Bean instantiation

ServiceLoader uses the reverse control in JDK ServiceLoaderFactoryBean AutowireCapableBeanFactory#createBean BeanDefinitionRegistry#registerBeanDefinition RumenzFactory interface and default implementation class DefaultRumenzFactory RumenzFactory.java package com.rumenz; public interface RumenzFactory { //jdk1.8 default implementation ...

Posted by svgmx5 on Tue, 30 Jun 2020 00:16:42 -0700

Record website visits

1. Create a table in the database to store the hits 2. Create a listener (MyWebListener) to implement the ServletContextListener interface. When the project is started, the hits are obtained through the dao layer (ContextMapper) and stored in the ServletContext. 3. Increase the number of visits when vi ...

Posted by tzikis on Tue, 30 Jun 2020 00:03:17 -0700

Creating threads using Callable and Future

In addition to the common ways of creating threads, we can also create threads using Callable and Future. This method is essentially consistent with other ways of creating threads. Only this way of creating threads can return the results of threads. Traditional runnable interface public interface Runnable { /** * When an object impleme ...

Posted by scrappy1855 on Mon, 29 Jun 2020 23:50:41 -0700

The deepest analysis of spring boot MVC automatic configuration failure in the whole network

preface I didn't plan to write this article, but after reading the core principles of SpringBoot, I suddenly thought of the MVC automatic failure problem encountered in the previous development. Although there are many articles and official documents on the Internet explaining the reasons, I still want to have a look at it in person. What I tho ...

Posted by pr0x on Mon, 29 Jun 2020 21:05:23 -0700

Getting started with RocketMQ to ground transaction message & sequential message

Next: RocketMQ entry to earth (1) novice can also understand the principle and actual combat! 1, Origin of transaction message 1. Case study Quoting official shopping cases: At the same time, you need to add 100 points to the downstream account to ensure that 100 yuan will be deducted from the system. Account system and points system are two in ...

Posted by cyberdwarf on Mon, 29 Jun 2020 19:54:31 -0700

This simple setup allows your Docker image to take off

This article has been included GitHub There are also Internet factory interview questions, interview strategies, efficient learning materials and so on 1. Preface Docker is cool to use, especially when used in DevOps practice.However, when you pull a mirror at home or locally, you often encounter constipation - either slowly or intermittentl ...

Posted by oneday on Mon, 29 Jun 2020 16:19:02 -0700

java packing and unpacking

java packing and unpacking Packing Unpacking Do an experiment Packing Basic data type = > wrapper class For example, int = > integer Unpacking Wrapper class = > basic data type For example, integer = > int Why are there basic data types? Because in java, a new object is stored in t ...

Posted by cowboy_x on Mon, 29 Jun 2020 01:40:14 -0700