Spring boot configures modular Services - one configuration is used everywhere

Configuring the service module is a bit like the configuration center, but the function is not so powerful for the time being. Later, the source address will be updated after improvement. catalog Project function introduction Project core configuration code Environment configuration Hidden configuration of MVC static resources Project f ...

Posted by lmg on Fri, 29 May 2020 07:21:25 -0700

Spring08_ Pure annotation practice_ Support transaction version

For the source code of this tutorial, please visit: tutorial_demo In the previous tutorial, we used pure annotation and Apache Commons DbUtils to implement CRUD operation of single table, but the operation in this tutorial does not support transaction. In this tutorial, we changed it to transaction support version according to the existing kno ...

Posted by 3dron on Fri, 29 May 2020 04:21:38 -0700

What is thread deadlock? What are the formation conditions? How to avoid it?

What is thread deadlock Deadlock is a kind of blocking phenomenon caused by two or more processes (threads) competing for resources or communicating with each other during the execution process. If there is no external force, they will not be able to move forward. At this time, the system is said to be in a deadlock state or the system generate ...

Posted by john_bboy7 on Fri, 29 May 2020 03:50:05 -0700

Java has not declined. Everyone's understanding of it is just beginning a new start of Java 8

Java has not declined. People's understanding of it is just beginning I'm glad to share the new features of Java 8 here. This article will take you step by step through all the new features of Java 8. I will show you the default method, lambda expression, method reference and repeated annotation in the interface through simple example code. A ...

Posted by FFEMTcJ on Fri, 29 May 2020 02:46:52 -0700

Read this article, let you less step on the pits of ArrayList

I am a kite, the official account "ancient kite", a technical public official account not only of technology, but also a 6 slash developer who has been in the program circle for many years, and has been playing Java in the main industry, and Python and React are also playing. The Spring Cloud series has been completed and you can go ...

Posted by ntg on Thu, 28 May 2020 21:31:19 -0700

Sorting algorithm (2): exchange sorting

Exchange sort can be divided into bubble sort and fast sort. Among them, fast sorting is an improvement on bubble sorting 1. Bubble sorting Principle: compare the adjacent two numbers, and exchange them from small to large. After one pass, the largest (smallest) number will be exchanged to the last one, and then compare the two numbers from the ...

Posted by Amman-DJ on Thu, 28 May 2020 09:15:28 -0700

Sorting algorithm (2): exchange sorting

Exchange sort can be divided into bubble sort and fast sort. Among them, fast sorting is an improvement on bubble sorting 1. Bubble sorting Principle: compare the adjacent two numbers, and exchange them from small to large. After one pass, the largest (smallest) number will be exchanged to the last one, and then compare the two numbers from the ...

Posted by lttldude9 on Thu, 28 May 2020 09:15:12 -0700

Python foundation-13 object oriented

13 object oriented 13.1 basic concepts Class: A   class is a collection of abstract concepts of events with a series of common characteristics and behaviors. The concept described by class is very similar to that in real life. For example, there are many kinds of creatures, different kinds of food and different kinds of goods. And a clas ...

Posted by fireice87 on Thu, 28 May 2020 06:05:59 -0700

ArrayList - Understanding common methods based on source code

ArrayList should be one of the most common list implementation classes in your usual code. It should be a surprise to learn more about common methods by looking at the source code, as well as infrequent ones.This time, look at the corresponding source in terms of method familiarity, it is necessary to paste the source. 1. ArrayList header com ...

Posted by Think Pink on Wed, 27 May 2020 10:23:59 -0700

Iterator mode for java (big talk design mode)

As we all know, Java is a high-level language in the programming language. In the world of java, there have been predecessors who have encapsulated various useful frameworks, tool classes and so on for us. The iterator mode that I want to talk about today has also been encapsulated. Is the for loop iterator that we often use.Or Iterator, these ...

Posted by neostrife on Wed, 27 May 2020 09:19:58 -0700