SpringBoot cache -- EhCache2.X

Introduction: Spring 3.1 starts to provide support for caching. The core idea is to cache methods. When a developer calls a method, the parameters and return values of the method are cached as key/value. When the method is called again, if there is data in the cache, it is directly obtained from the cache. Otherwise, the method is executed. How ...

Posted on Mon, 24 Feb 2020 02:53:39 -0800 by dbarron87

Take you to read Mybatis source code cache

Preface Hello everyone, this is the last article in the MyBatis series, the first two articles: Take you to read the Mybatis source code (I) construction Sum Take you to read the Mybatis source code (II) executive part , which mainly explains how MyBatis builds our xml Configuration file into its internal Configuration object and MappedStatemen ...

Posted on Mon, 24 Feb 2020 01:08:02 -0800 by ojeffery

Java date class - date API after JDK8

JDK 1.0 contains a java.util.Date class, but most of its methods have been deprecated since JDK 1.1 introduced the Calendar class Now. Calendar is not much better than Date. The problems they face are: Variability: classes like date and time should be immutable. Offset: the year in Date starts from 190 ...

Posted on Sun, 23 Feb 2020 21:08:32 -0800 by solar_ninja

Improve IOPS of Ceph cluster through fio pressure measuring rbd equipment

1, fio installation 1. download fio fio official website address: http://freshmeat.net/projects/fio/ wget http://brick.kernel.dk/snaps/fio-2.0.7.tar.gz 2. Confirm whether CEPH devel compat is installed [root@node-2 fio]# rpm -qa | grep ceph-devel-compat ceph-devel-compat-0.94.6-1.el7.centos.x86 ...

Posted on Sun, 23 Feb 2020 02:30:03 -0800 by TheBrandon

Error handling by exception: create custom exception, exception description

I. create custom exception You don't have to cling to the exception types that already exist in java. The exception system provided by java cannot foresee all the errors that you want to report, so you can customize exception classes to represent specific problems that may be encountered in your pro ...

Posted on Sun, 23 Feb 2020 02:05:47 -0800 by Axcelcius

The usage of foreach loop in MyBatis

1, Before you know foreach, first understand the mybatis input parameters and parameterType 1. When we pass parameters to the corresponding mapper.xml file in Dao layer, we can pass the following parameters: ①. Basic data types (such as int/Integer, long/Long, float, etc.) ②. Simple reference data type (such as String, User entity class object, ...

Posted on Sat, 22 Feb 2020 23:42:39 -0800 by revaaron

The application of Java multithreaded programming in the main frameworks

Spring, Netty, Mybatis and other frameworks use a lot of Java multithreading techniques. Whether the concurrent programming process is appropriate or not will directly affect the performance of the architecture. In this chapter, through the analysis of the source code of these frameworks, combined with ...

Posted on Sat, 22 Feb 2020 20:14:30 -0800 by dave_55

Java learning path-49: Servlet Filter

Lesson 1 Introduction to filters Three components of Java Web 1. All need to be configured in web.xml Servlet Filter Listener 2. Filter Will be executed in front of a set of resources (jsp, servlet, css, html, etc.) You can let the request get the target resource or not The filter has the ability to i ...

Posted on Sat, 22 Feb 2020 19:29:58 -0800 by nloding

Simple course design assignment -- personal address book database system (java, MySQL)

Summary: the main purpose of this personal address book database system is to make a complete and easy-to-use information management system to improve the efficiency of saving contacts. Due to the limited ability, the interface is not good-looking. In addition, the login programming only sets the login ...

Posted on Sat, 22 Feb 2020 06:56:50 -0800 by konetch

"Sword finger Offer" Java brush question NO.12 adjust array order to make odd number before even number

NO.11: adjust the array order so that the odd number is before the even number Portal: General Catalogue of sword finger Offer Time: February 18, 2020Title: Input an integer array, and implement a function to adjust the order of the numbers in the array, so that all the odd numbers are in the first ...

Posted on Sat, 22 Feb 2020 03:39:26 -0800 by RobNewYork