[original] 002 | take the SpringBoot transaction source code analysis car

Preface If this is the second time you see the teacher, you are coveting my beauty! Like + pay attention again, form habit It doesn't mean anything else. It just needs your camera screen^_^ Special car introduction** This special train is for Spring Boot transaction source code analysis Special vehicle problem Why can transaction be implemente ...

Posted by PC Nerd on Tue, 10 Dec 2019 04:11:21 -0800

Online Dictionary (no interface)

Implementation ideas: The definition of the dictionary is obtained from ICIBA server, so you need to obtain an identity key first. The obtaining methods are as follows: ①. Open ICIBA website: ICIBA (2) select ICIBA to check the word, and after submitting the information, obtain an identity key in the email Use openural to ca ...

Posted by zenon on Tue, 10 Dec 2019 03:00:25 -0800

AMD of JavaScript modular programming

Simply put, AMD is the abbreviation of "Asynchronous Module Definition", which means "Asynchronous Module Definition". It loads the module asynchronously, and the loading of the module does not affect the running of the subsequent statements. All statements that depend on this module are defined in a callback function, which ...

Posted by chaser7016 on Tue, 10 Dec 2019 02:34:53 -0800

Talk about rocketmq's latency fault tolerance

order This paper mainly studies the latency fault tolerance of rocketmq LatencyFaultTolerance rocketmq-client-4.6.0-sources.jar!/org/apache/rocketmq/client/latency/LatencyFaultTolerance.java public interface LatencyFaultTolerance<T> { void updateFaultItem(final T name, final long currentLatency, final long notAvailableDuration); ...

Posted by kcgame on Tue, 10 Dec 2019 00:16:04 -0800

Redis source reading notes - server startup and initialization

Start of server The main function of Redis server is in server.c. // server.c int main(int argc, char **argv) { struct timeval tv; int j; /* Set some constants of the server */ /* We need to initialize our libraries, and the server configuration. */ #ifdef INIT_SETPROCTITLE_REPLACEMENT spt_init(argc, argv); #endif setl ...

Posted by jeff_papciak on Tue, 10 Dec 2019 00:11:57 -0800

Thread security -- volatile

volatile: when multiple threads operate and share data, data in memory can be visible; @Slf4j public class MyVolatile { public static void main(String[] args) { ThreadRun threadRun = new ThreadRun(); new Thread(threadRun).start(); log.info("begin----flag:{}",threadRun.flag); while (true){ if (th ...

Posted by bznutz on Mon, 09 Dec 2019 23:28:35 -0800

RabbitMQ+PHP demonstration example

Create rabbit_consumer.php as a consumer <?php //configuration information $conn_args = array( 'host' => '127.0.0.1', 'port' => '5672', 'login' => 'admin', 'password' => 'admin', 'vhost'=>'/' ); $e_name = 'e_linvo'; //Switch name $q_name = 'q_linvo'; //Team name $k_route = 'key_1 ...

Posted by rallan on Mon, 09 Dec 2019 19:52:35 -0800

A comparative analysis of golang socket and Linux socket

After posix standard was introduced, socket has been well supported on all major OS platforms. Golang is a cross platform programming language with runtime. The socket API provided to developers in Go is based on the native socket interface of the operating system. But the behavior of socket interface in golang is different from that of native ...

Posted by art15 on Mon, 09 Dec 2019 18:41:31 -0800

[template] minimum cost and maximum flow

Title Description For example, give a network diagram, its source point and sink point, each edge has known its maximum flow and unit flow cost, and find out its maximum flow and minimum cost in the case of maximum flow. I / O format Input format:   The first row contains four positive integers N, M, S, and T, which respec ...

Posted by Mistah Roth on Mon, 09 Dec 2019 18:31:52 -0800

Basic usage of Beetl template [variables, cycles, conditions] - Beetl video course

This video makes a list of the blog's home page; Content introduction: springboot integrates beetlsql; uses for loop, if control statement, virtual property, variable definition, etc Learn beetl directory together: https://my.oschina.net/u/1590490?tab=newest&catalogId=6214598 Author: GK Integrate BeetlSql to query database Introdu ...

Posted by aniket_dj on Mon, 09 Dec 2019 17:27:36 -0800