Spring boot2. X basic chapter: take you to know about scanning Package automatic registration Bean

Knowledge changes fate, rolling code makes me happy, and I will continue to swim in the open source industry in 2020 < br / > Take a look at what you like and get into the habit < br / > Give me a Star, Click to learn about the implementation solution of component-based interface service based on spring boot We have been using Sp ...

Posted by lazytiger on Tue, 25 Feb 2020 00:54:47 -0800

Self implementation of Spring core IOC and AOP

Article directory Spring 1. Core Container 2,Data Access 3,Web 4,AOP 5,Test Correspondence between Spring version and Java version IoC 1. XML parsing: 2. Create objects dynamically based on the information obtained in step 1 The spring-ioc.xml file is as follows Class User Spring provides point p ...

Posted by loveranger on Mon, 24 Feb 2020 20:09:07 -0800

Design Mode Notes - Prototype Mode

First, the problem of cloning sheep Now there is a sheep tom, named tom, age 1, color white, please write a program to create 10 sheep with the same Tom properties 2. Traditional Solutions 1.sheep class package Design Mode.Prototype mode.Traditional way; public class Sheeep { private String ...

Posted by _SAi_ on Mon, 24 Feb 2020 19:24:57 -0800

When does java use CountDownLatch

1. What is CountDownLatch CountDownLatch was introduced in Java 1.5, along with the concurrency tool classes CyclicBarrier, Semaphore, ConcurrentHashMap, and BlockingQueue, which all exist under the java.util.concurrent package.CountDownLatch is a class that enables one thread to wait for other threads to finish their work before executing.For ...

Posted by daria on Mon, 24 Feb 2020 15:15:01 -0800

Multithreaded notes - single example

Single instance creation. There are many examples on the Internet. I just take notes here. Maybe it's not more detailed than others. It's mainly to make some cloud notes for myself 1. hungry man public class Ehan { //1. Provide a static instance private final static Ehan instance = new Ehan(); //2. Privatization constructor p ...

Posted by QuizToon on Mon, 24 Feb 2020 03:47:10 -0800

Detailed explanation of. classpath file in eclipse project

1 Preface When using eclipse or myeclipse for java project development, there will be a. classpath file under each project. What is the role of this file? 2 role The. classpath file is used to record all the information of the project compilation environment, including: source file path, storage path of ...

Posted by iamtheironman on Mon, 24 Feb 2020 03:13:53 -0800

Enumeration classes and annotations

Enumeration classes and annotations 1, Use of enumeration classes 2, How to define enumeration class Method 1: before jdk5.0, customize enumeration class Mode 2: jdk5.0, enum keyword can be used to define enumeration class 3, Common methods in Enum class: 4, Implementation of the interface using en ...

Posted by nttaylor on Mon, 24 Feb 2020 03:11:21 -0800

SchduleWithFixedDelay and SchduleAtFixedRate of Trample Series

Understanding timed and delayed tasks Scheduled ExecutorService#scheduleAtFixedRate() refers to execution at a fixed frequency, and period refers to the time between two successful executions.The time at which the previous task starts, after a period, detects whether the previous task has been completed, if the previous task has been completed ...

Posted by ade234uk on Sun, 23 Feb 2020 19:51:38 -0800

JavaWeb Project Programming Specification

Coding specifications in the work, which need to be written in the future. Before encoding, first write according to Alibaba's development specifications, if using idea, use its plug-ins. In the case of springmvc, the following styles are best used to define the path: @RequestMapping(value = "/upda ...

Posted by Clinger on Sun, 23 Feb 2020 19:25:16 -0800

How Spring Boot tests packaged deployments

I. Development Phase (1) Unit testing The most important thing in the development phase is unit testing, and Spring Boot's support for unit testing is already complete. 1. Add dependencies to the pom.xml file <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</arti ...

Posted by boo_lolly on Sun, 23 Feb 2020 18:56:52 -0800