Spring boot integrates MyBatis to add, delete, modify and check the complete version of case (with source code)

1. introduction Spring Boot is a framework to simplify spring development. It is used to monitor the spring application development. The Convention is larger than the configuration. just run can create an independent, product level application. When we use Spring boot, we only need to configure the corresponding Spring boot to use all the Sprin ...

Posted by Shibbey on Wed, 04 Mar 2020 02:41:19 -0800

How to deal with global exception in microservice

In microservices, global exception handling is an objective problem that must be solved. If these exceptions are not handled well, some unfriendly error messages will be displayed to users, such as null pointer exceptions, SQL execution errors and other exceptions, which are certainly incomprehensible t ...

Posted by dniry on Wed, 04 Mar 2020 02:35:09 -0800

Advanced Java programming: thread pool and Lambda

Today, I'll show you the use case of multithreading. Hope to help you, please see the following list, thank you! Use of thread pool public static ExecutorService newFixedThreadPool(int nThreads); Get a thread object. The initialization parameter is the required number of threads in the current th ...

Posted by robwilson on Wed, 04 Mar 2020 00:25:58 -0800

Portable file operations - Files

Portable file operations - Files Separator In Windows system, backslash '' or slash '/' is used as the separator of the path. However, when using backslash, it needs to be noted that a single backslash represents the escape character, so when using backslash as the separator of the path, it needs ...

Posted by lettie_dude on Wed, 04 Mar 2020 00:13:12 -0800

The difference between StringBuffer and StringBuilder in string splicing

jdk version 1.8 StringBuffer and StringBuilder inherit from the same parent class AbstractStringBuilder. The source code of append is respectivelyStringBuffer @Override public synchronized StringBuffer append(String str) { toStringCache = null; super.append(str); return t ...

Posted by pourmeanother on Tue, 03 Mar 2020 22:35:45 -0800

RabbitMQ message mode II

Blog content Portal Current restriction at the consumer end ACK and return queue of messages TTL message Dead letter queue Portal Getting started with RabbitMQRabbitMQ message mode 1 Current restriction at the consumer end What is the current restriction of the consumer end? Suppose a scenario ...

Posted by silentweed on Tue, 03 Mar 2020 20:53:24 -0800

SpringBoot Graphics Tutorial 9 - SpringBoot Import Export Excel "Apache Poi"

The concept of flying in the sky requires the realization of landing -Ten concepts are not as good as code, friend. I hope you'll hit through all the code cases in this article -First approve then see, develop a habit Table of Contents for SpringBoot Tutorial Series Articles SpringBoot Picture T ...

Posted by Shuriken1 on Tue, 03 Mar 2020 19:03:10 -0800

Simple Factory-Factory Method for Design Mode Theme-Abstract Factory-Static Agent-Dynamic Agent

1. Factory Mode 1.1 What is factory mode Separation of creator and caller is implemented, factory mode is divided into simple factory, factory method, abstract factory mode 1.2 Factory Mode Benefits Factory mode is one of our most common instantiated object modes, replacing the new operation with ...

Posted by patrickm on Tue, 03 Mar 2020 18:48:06 -0800

Day08 Java se exception mechanism

Java se exception mechanism 1, What is anomaly? Exception refers to various unexpected situations in the program Such as: file not found, network connection failure, illegal parameters, etc. Simple classification Checking exception: an exception caused by a user error or problem that cannot be for ...

Posted by integravtec on Tue, 03 Mar 2020 01:32:38 -0800

SPI application and principle of dubbo

dubbo SPI(Service Provider Interface) In essence, the fully qualified name of the interface implementation class is configured in the file, and the service loader reads the configuration file and loads the implementation class. This allows you to dynamically replace the implementation class for the interface at run time. SPI is used to de ...

Posted by Thora_Fan on Mon, 02 Mar 2020 23:42:33 -0800