Linux commands that Java developers must master

Be a positive personCode, fix bug s, improve yourselfI have a paradise for programming, spring blossoms! Learning should be happy. In this paradise, I try my best to explain knowledge or technology with simple and easy-to-understand (funny and interesting) expressions, and make the learning journey full of fun. This is the beginning of blog wri ...

Posted by Thundarfoot on Tue, 23 Jul 2019 04:03:57 +0200

Java Day 33 (Transaction & Database Connection Pool & DBUtils)

affair Transaction actually refers to a set of operations that contain many single logic. As long as one logic fails to execute successfully, it fails. All data is returned to its original state (rollback) Why do we have business? To ensure the success of logic. Example: Bank transfer. Demonstrate transactions using the command line. Op ...

Posted by Corin on Mon, 22 Jul 2019 13:52:06 +0200

Look, i++ is really not safe

Last article mentioned that "i++;" itself is a thread unsafe operation, because the operation is not atomic, there are two processes of value and assignment, but how can it be unsafe? This issue uses a "vmlens" project to demonstrate why thread insecurity occurs. At the end of the paper is a brief introduction to vmlens. Tes ...

Posted by loopt on Mon, 22 Jul 2019 10:53:17 +0200

Traffic Gray Level and Version Management of Knative Service

This paper mainly introduces the traffic gray level of Knative Serving, and demonstrates how to create different Revisions and how to scale the traffic gray level among different Revisions through a rest-api example. Deploy rest-api v1 Code Before testing, we need to write a rest-api code and be able to distinguish between different version ...

Posted by benphelps on Mon, 22 Jul 2019 05:59:29 +0200

Spring CloudFeign transfers date type parameters with a time difference of 14 hours

I. Time difference of Java Date type Look at the code below. public static void main(String[] args) throws Exception { Date date1 = new Date(); System.out.println("date1: " + date1.toString()); Date date2 = new Date(date1.toString()); System.out.println("date2: " + date2.toString()); } The results are as follows. date1: ...

Posted by timvw on Mon, 22 Jul 2019 05:50:49 +0200

Front End Engine: From bind to curry

Preface It has not been updated for a long time. On the one hand, I am busy with my work, on the other hand, I am in the process of learning. Next, it should gradually return to a stable state of renewal, sharing some interesting points of knowledge and my personal thinking. Interested friends can pay attention to it! If there is something wron ...

Posted by jim.davidson on Mon, 22 Jul 2019 05:34:47 +0200

Dubbo Thread Pool Source Parsing

This article was first published in the public number "andyqian" of personal WeChat, and we look forward to your attention! Preface Previous article " Java Thread Pool Executor><Analysis of ThreadPoolExecutor Principle ThreadPoolExecutor describes the concepts and principles of ThreadPoolExecutor, and today we'll lo ...

Posted by esthera on Mon, 22 Jul 2019 05:10:30 +0200

Deep parsing of xxl-rpc service callers

I. Callers of services Overview of service invokers: The invoker package in the remoting package is the service caller, including configuration, bean proxy, load balancing strategy, invocation scheme, etc. II. Generating Agent 2.1 @XxlRpcReference Let's first look at the @XxlRpcReference annotation ...

Posted by PascalNouma on Sun, 21 Jul 2019 13:52:56 +0200

Python 3 Dictionary Explanation

Create and use dictionaries Dictionaries can be created in the following ways: phoneBook = {"Bill":"1234", "Mike":"4321"} In a dictionary, keys are unique. If the key is not unique, then the program will not throw an exception, but the same key value will be overwritten by the last one: phoneBook = {"Bill":"1234", "Mike":"4321", "Bill":"5678"} ...

Posted by big-dog1965 on Sun, 21 Jul 2019 11:51:17 +0200

springboot2+logback trampling trip to export logs to oracle Database

background According to my blogging practice, first explain the background. In the company's system, our configuration files are divided into several parts. Different configuration files have different configuration contents. For the output of logs, different environments need to make different outputs. This is a premise. This article will talk ...

Posted by dumbass on Sun, 21 Jul 2019 04:57:50 +0200