Chapter 2 go deep into synchronized keyword

1. introduction Thread safety is the top priority of concurrent programming, and there are two main causes of concurrent problems. 1. Critical resources exist 2. Multiple threads operate on shared data at the same time Based on this situation, we will consider a mechanism that when one thread accesses ...

Added by DWilliams on Mon, 20 Jan 2020 11:47:54 +0200

A preliminary study of springboot -- the starting process

Spring boot has been introduced earlier. This article begins with what spring boot does in the startup process and how to complete a web project with so little code. For others, we can ignore it first. Let's take a look at the main method of springboot @SpringBootApplication public class DemoApplication { public static void main(String[] arg ...

Added by Penelope on Sun, 19 Jan 2020 10:01:09 +0200

Talking about hibernate

This article mainly introduces the Hibernate framework, the concept of ORM and the introduction of hibernate. I believe you will use hibernate after reading it. If you want speed, you will not reach it. If you want speed, you will reach it! 1, Basic concepts hibernate is an ORM framework, which is called object "relative database mappin ...

Added by chaddsuk on Sun, 19 Jan 2020 07:53:08 +0200

SpringSecurity Initialization Process Source

This article mainly explains the source part of the SpringSecurity initialization process, including how the core springSecurityFilterChain was created and where personalized configurations can be extended. The SpringSecurity source code is a real headache for all kinds of Builder Configurations! _1. Brief introduction _The core functions of Sp ...

Added by ryansmith44 on Sun, 19 Jan 2020 06:46:31 +0200

Talk about artemis' graceful shutdown enabled

order This paper focuses on the graceful shutdown enabled of artemis gracefulShutdownEnabled activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java public class ConfigurationImpl implements Configuration, Serializable { //...... private boolean gracefulShutdownEnabled = A ...

Added by kitegirl on Sat, 18 Jan 2020 18:15:32 +0200

cobra of Go daily

brief introduction cobra Is a command itinerary library, can be used to write command-line programs. It also provides a scaffold, Used to generate cobra based application framework. Many well-known open source projects use cobra library to build command line, such as Kubernetes,Hugo,etcd Wait, wait, wait. This paper introduces the basic use of ...

Added by Bullet on Sat, 18 Jan 2020 11:57:23 +0200

javascript foundation consolidation

eval // The eval method executes executed js script code <script id="a"> console.log("aaa") </script> <script> eval(document.getElementById("a").innerText) </script> Prototype Chain // instanceof detects whether the prototype on the right exists on the u proto_u prot ...

Added by stb74 on Sat, 18 Jan 2020 06:08:04 +0200

C Language Learning: Strings, Structures, Commons

Character string In C, strings are actually one-dimensional character arrays terminated with the null character'\0'.Therefore, a null-terminated string contains the characters that make up the string.Declare and initialize create a string: char charArrayName[capacity] = {charElement1,charElement2.. ...

Added by fluvly on Sat, 18 Jan 2020 04:25:49 +0200

Common settings for Binlog in MySQL

Get mysql image ➜ ~ docker pull mysql ➜ ~ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mysql latest d435eee2caa5 3 weeks ago 456MB mysql ...

Added by unmash on Thu, 16 Jan 2020 04:07:52 +0200

Day 17 of learning java - Java collection framework

Java collection framework Java collection overview Front storage objects, arrays, disadvantages A Java collection is like a container in which you can put references to multiple objects. Java collection classes can be used to store multiple objects with different numbers, and can also be used to store ...

Added by thepip3r on Wed, 15 Jan 2020 15:01:36 +0200