High frequency interview question: a picture to thoroughly understand Spring circular dependency
home pagespecial columnjavaArticle details0High frequency interview question: a picture to thoroughly understand Spring circular dependencyJava general Published 10 minutes ago1 what is circular dependency?As shown in the figure below:BeanA class depends on BeanB class, and BeanB class depends on BeanA class. This dependency forms a closed loop ...
Posted by Singularity on Fri, 29 Oct 2021 23:17:32 -0700
Ubuntu 18.04 + Anaconda + CUDA + cudnn + Python environment configuration (updated on 2021.10, available for pro testing)
This set of environment is really too complex. There are too many pits. After more than half a year, it finally succeeded today.
Graphics card driver
Direct installation system recommends graphics card driver, with the lowest error probability.
sudo ubuntu-drivers autoinstall
View installation status
nvidia-smi
The graphics card version ...
Posted by Coronet on Fri, 29 Oct 2021 23:07:37 -0700
Implementation of Leader election in k8s client go
introduce
In recent years, with the increasing demand for reliable systems and infrastructure, the term "high availability" has become more and more popular. In distributed systems, high availability usually involves maximizing uptime and making the system fault-tolerant.
In high availability, a common practice is to use redunda ...
Posted by Rheves on Fri, 29 Oct 2021 22:54:48 -0700
HTML - Summary of basic knowledge points
HTML summary
1, Introduction to HTML 1.HTML HTML(HyperText Markup Language), a hypertext markup language, uses various tags to represent the structure of documents and information identifying hyperlinks. 2.HTML document html documents contain tags and text content, and html documents are also called web pages. 2, HTML basic structure
<!DOC ...
Posted by inversesoft123 on Fri, 29 Oct 2021 22:25:36 -0700
The. NET Core TLS protocol specification was exploited by me~~~
preface
Previously, through tool scanning, the test partner found that the platform TLS SSL protocol supports TLS v1.1, which is not safe. The TLS SSL protocol should be at least v1.2 or above. It is thought that we have only supported v1.3, which should not be a problem of our platform. I still confidently explain that it has nothing to do wit ...
Posted by mrwutang on Fri, 29 Oct 2021 21:26:09 -0700
Front end project specification (CSS)
CSS coding specification
1 Preface
2 code style
2.1 documents
2.2 indent
2.3 spaces
2.4 line length
2.5 selector
2.6 properties
3 general
3.1 selector
3.2 attribute abbreviations
3.3 attribute writing order
3.4 clear float
3.5 !important
3.6 z-index
4 values and units
4.1 text
4.2 values
4.3 url()
4.4 length
4.5 color
4.6 ...
Posted by jmelnick on Fri, 29 Oct 2021 21:19:12 -0700
Comparison of objects in java (three ways)
Question raised
Last class, we talked about priority queue. When inserting elements into priority queue, there is a requirement: the inserted elements cannot be null or the elements must be able to be compared. For simplicity, we just inserted Integer type. Can we insert custom type objects in priority queue? Let's start with a code:
clas ...
Posted by jenniferG on Fri, 29 Oct 2021 21:18:00 -0700
Java string
catalogue
1, Traversal string
2, Count the number of various characters
3, Splice string
4, String inversion
1, Traversal string
public static void StringTest03(){
System.out.println("Please enter a string:");
String str = sc.nextLine();
for (int i = 0; i < str.length(); i++){
System.out. ...
Posted by jgh84 on Fri, 29 Oct 2021 21:07:49 -0700
Comprehensive analysis of IO stream (including NIO description)
Use of File class
summary
An object of the File class that represents a File or a File directory (commonly known as a folder) The File class is declared under the java.io package File class involves the creation, deletion, renaming, modification time, file size and other methods of files or file directories
There is no operatio ...
Posted by dankstick on Fri, 29 Oct 2021 21:05:20 -0700
Spring DATA JPA: create entity classes
JAVA 8
Spring Boot 2.5.3
MySQL 5.7.21
---
Note: this code uses org.projectlombok:lombok (the version is specified by Spring Boot).
catalogue
1. Create entity class
2. Primary key id
3. Composite primary key
4. General field
4.1. Use @ Column annotation
4.2. Do not use @ Column annotation
4.3 enumeration type
4.4. Creation time and last upda ...
Posted by ntg on Fri, 29 Oct 2021 20:47:27 -0700