Spring -- declarative transaction control

catalogue Programming transaction control related objects Three objects of programming transaction control   Declarative transaction control based on XML Implementation of declarative transaction control Configuring declarative transaction control using annotations Programming transaction control related objects Three objects of pr ...

Posted by erasam on Fri, 22 Oct 2021 18:23:52 -0700

Multithreading foundation 1

Let's start with two concepts: process and thread            Process: a running program, which is an independent unit of the system for resource allocation and call. Each process has its own memory space and system resources.          Thread: a single sequent ...

Posted by sargus on Fri, 22 Oct 2021 17:14:40 -0700

Meituan side: what is the relationship between hashCode and the memory address of the object? I'm confused..

Source: juejin.cn/post/6971946031764209678 First look at the simplest print System.out.println(new Object()); The fully qualified class name and a string of strings of this class will be output: java.lang.Object@6659c656 @What is after the symbol? Is it hashcode or the memory address of the object? Or something else? In fact, @ what follow ...

Posted by sac0o01 on Fri, 22 Oct 2021 17:04:34 -0700

Jump to the item page in RecyclerView

1, Function realization requirements Implementation: in the waterfall flow page layout implemented by RecyclerView, click any commodity to jump to its commodity details page. 2, Concrete implementation The file directory is as follows: 2.1 detail page design after jump Now only jump implementation is considered. Taking the first prod ...

Posted by leszczu on Fri, 22 Oct 2021 08:24:50 -0700

Java notes - multithreading

Process and thread Process: The running program is an independent unit for the system to allocate and call resources. Each process has its own memory space and system resourcesThread: It is a single sequential control flow in a process, or a separate execution path If a process has only one execution path, it is called a single threaded progra ...

Posted by hagman on Fri, 22 Oct 2021 07:43:32 -0700

It turns out that jdk comes with such a fun tool > use jstack to locate the dead loop

What is jstack The main function of jstack is to view or export the stack information (snapshot) of java threads; Used for stack trace. When we use the jstack command, it will print out the call stack of methods in all threads in the specified process. Thread snapshot is a collection of method stacks being executed by each thread in java virt ...

Posted by unreel on Fri, 22 Oct 2021 06:44:57 -0700

Spring boot 2 custom annotation, taking AOP simple logging as an example

1, Foreword Long time no see. How are you? Recently started learning Ruoyi Framework: a background management system based on SpringBoot. As a rapid development framework, online evaluation is good. Students who have time can look at the code and learn it. At the beginning, I planned to introduce the user-defined annotation with the Log ...

Posted by melefire on Fri, 22 Oct 2021 05:15:30 -0700

Together, let's go to the Java collection world to find out—— Collection & List

catalogue preface 1, Collection collection 1. Collection characteristics and architecture 2.Collection collection overview and basic usage 3. Common methods and traversal of collection 4. Collection case - the collection stores student objects and traverses them 2, List collection 1.List set overview, features and unique methods 2. Con ...

Posted by garfx on Fri, 22 Oct 2021 04:53:20 -0700

JAVA obtains data through tcp communication and LabVIEW BCL 308i code scanning gun

        Recently, a code scanning gun will be integrated in the project, and I will be responsible for docking. I have to say, this code scanning gun is really the most annoying I've ever seen. The first is the hardware, which needs to be assembled by yourself, and then the network cable needs to make one to connect to thei ...

Posted by toivo on Fri, 22 Oct 2021 03:53:00 -0700

Android Gradle - Groovy dynamic features and metaprogramming

preface In the last article, I mainly explained Detailed explanation of Groovy classes, methods and closures, In this article, we will explain Groovy's dynamic features and metaprogramming in detail. 1. Groovy dynamic features Speaking of dynamic characteristics, in the first article Understand Gradle and automated build In, it is just a bri ...

Posted by cloudzilla on Fri, 22 Oct 2021 03:37:22 -0700