Actuator parsing of mybatis source code

The main responsibility of mytatis executor is to translate jdbc operations, which is a very important function of mybatis. The executor class diagram is as follows - As can be seen from the figure above, all the executors implement the Executor interface, defining some general operations, and the Executor interface is defined as follows /* ...

Posted on Mon, 07 Oct 2019 22:41:45 -0700 by msinternet

Using js to translate words in batches, there are lots of translations.

Taoist translation provides api to obtain the translation result of a word, but the result contains only one Chinese meaning, some words have multiple meanings and parts of speech, so try to obtain all translations of a word. I can't write crawlers, so I use js programming to get the translation results ...

Posted on Mon, 07 Oct 2019 21:21:15 -0700 by mniessen

Network programming - python implementation - socket (1.1.2)

Catalog What is 1.UDP? 2. Code Implementation @ (Network programming) What is 1.UDP? Internet Protocol Set supports a connectionless transport protocol, which is called User Datagram Protocol (UDP). UDP provides a way for applications to send encapsulated IP datagrams without establishing connections. RFC 7 ...

Posted on Mon, 07 Oct 2019 14:03:19 -0700 by uptime

When mybatis inserts data, it returns the primary key (mysql database)

The first way is to use the useGeneratedKeys attribute Class User public class User { private int id; private String username; private Date birthday; private String sex; private String address; ... mapper file <insert id="insertUser" parameterType="User" useGeneratedKeys="true" keyProperty="id"> insert into u ...

Posted on Mon, 07 Oct 2019 12:55:45 -0700 by zeb

Enable FeignClients for Feign Source Analysis

    springcloud-openfeign-core-2.1.1.release. When using feign in spring cloud, List-1 below, the name of the FeignClient is the service name, which automatically gets the physical address from Eureka.     List-1 @FeignClient(name="UserProvider") public interface UserProvider { ... } How does this work in Springcloud? Starting with @Ena ...

Posted on Mon, 07 Oct 2019 09:17:34 -0700 by aneesme

Spring Boot Cache Actual Redis

Spring boot uses SimpleCacheConfiguration by default, even using Concurrent MapCache Manager to implement caching. But switching to other cache implementations is also simple. The following is the use of redis as a cache: pom file Introducing corresponding jar packages into pom <dependencies> <dependency> <groupId>org.sprin ...

Posted on Mon, 07 Oct 2019 08:41:03 -0700 by novice_php

springboot integrates pits of elastic search-rest-high-level-client

I used Elastic Search 7.2.0 and tried to climb the pit because the elastic search-rest-high-level-client end was recommended on the official website for integration in spring boot. First, introduce the configuration file of the official network directly. <dependency> <groupId>org.elasticsearch.client</groupId> ...

Posted on Mon, 07 Oct 2019 03:20:21 -0700 by Pyrite

Linux System: Building Nginx and FastDFS File Management Middleware under centos7

This article source code: GitHub. Click here || GitEE. Click here Introduction to FastDFS 1. Basic concepts FastDFS is an open source lightweight distributed file system. It manages files. Its functions include file storage, file synchronization, file upload, file download and so on. It solves the problems of large capacity storage and load ba ...

Posted on Mon, 07 Oct 2019 03:06:37 -0700 by chanchelkumar

Phase II, Practical Java High Concurrent Programming Patterns-7.nio, aio

I. outline What is NIO?  Buffer  Channel Network programming  AIO Why do we need to know about NIO and AIO? What is NIO? NIO is short for New I/O. Compared with the old stream-based I/O method, it represents a new set of Java I/O standards by name. It is incorporated into JDK in Java 1.4 and has the following features: NIO is based ...

Posted on Mon, 07 Oct 2019 02:35:52 -0700 by charmedp3

Eight Ways to Create Threads in the Series of Dead java Threads

(mobile phone horizontal screen source code is more convenient) problem (1) What are the ways to create threads? (2) what scenarios do they have? brief introduction Creating threads is the most basic operation in multithreaded programming. Tong Ge summed up that there are probably 8 ways to create threads. Do you know? Inherit the Thread class ...

Posted on Mon, 07 Oct 2019 01:47:39 -0700 by pyr