Spring Boot Cache Actual EhCache

Spring boot uses SimpleCacheConfiguration by default, even using Concurrent MapCache Manager to implement caching. But switching to other cache implementations is also simple. pom file Introducing corresponding jar packages into pom <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifact ...

Posted on Wed, 09 Oct 2019 20:14:25 -0700 by judgy

junit unit testing

Use of junit: white box testing Steps: 1. Define a test class (test case) * Test Class Name: The Class Name under Test, e.g.Calculator * Package name: xxx.xxx.xx.test 2. Define test methods: they can run independently * Method Name: Method Name of test Test test, e.g. testAdd() * Return value: ...

Posted on Sun, 06 Oct 2019 12:53:00 -0700 by Bluelove

Android Multichannel Packaging--Gradle Packaging

Android Multichannel Packaging--Gradle Packaging Preface Since App is generally available in multiple application markets, in order to analyze the specific data of App in each different channel, different Apps are usually packaged in different channels. There are many ways of multi-channel packaging. Here we only introduce the use of Gradle for ...

Posted on Thu, 03 Oct 2019 01:46:13 -0700 by EricC

Configuration bean parant

siye@r480:~/svlution/workspace/springcore4322$ tree src/ src/ ├── main │   ├── java │   │   ├── log4j.properties │   │   └── ocn │   │   └── site │   │   └── springioc │   │   └── domain │   │   ├── Person.java │   │   └── User.java │   └── resourc ...

Posted on Tue, 01 Oct 2019 20:15:56 -0700 by PickledOnion

Jedis in Redis

jedis is the Redis client tool jar Use the non-clustered version of the sample code: pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ...

Posted on Tue, 01 Oct 2019 19:57:50 -0700 by thecard

Scheduled Executor Service schedules a thread pool to run several times before stopping a thread

Occasionally, there will be some polling requirements in the development, such as the docking with the bank, the bank does not synchronize the results after completing a certain business. At this time, we need to query and return the results. Our requirements are five minutes once, three times, three times later, if there are no results, then T ...

Posted on Mon, 30 Sep 2019 15:51:59 -0700 by vampke

Spring Framework Learning Notes-AOP for Aspect-Oriented Programming

introduce concept AOP is different from OOP. AOP is not a replacement for OOP, but a supplement to OOP. AOP enhances OOP. Suppose we have several business codes that call a method. According to the idea of OOP, we encapsulate this method in a class and then call it by object. method name. We can think of our business code as being invaded by ot ...

Posted on Wed, 25 Sep 2019 07:40:41 -0700 by mjgdunne

Kotlin Co-operation Suspended

The suspension of an association is a very important and difficult concept. Starting from the start of the project. @Test fun Test Concurrent Start() { GlobalScope.launch(start = CoroutineStart.DEFAULT) Where the project starts ...

Posted on Tue, 17 Sep 2019 04:18:28 -0700 by Virvo

Spring uses xml to start source parsing

Origin of this article Spring uses xml to start source parsing Reprinted please indicate the source Engineering preparation Introducing Spring Minimum Dependency <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.version>5.1.8.RELEASE</spring.version> &l ...

Posted on Fri, 13 Sep 2019 02:12:15 -0700 by glennn3

CascadeType.PERSIST can not concatenate to save data source level exploration

Preface In business development, we often encounter the case that the primary key ID can not be self-increasing, but needs to use random strings. But in this case, CascadeType.PERSIST cascade storage is problematic. Here I assume that you know what ...

Posted on Wed, 11 Sep 2019 19:57:39 -0700 by nitram