#java
18 articles
Chronicle
18 posts2024
12- 02 Jun 16 Understanding Java Object Memory Layout This article provides a detailed introduction to the storage structure of Java objects in memory, discusses how to reasonably estimate the approximate memory space required for project operation through tools and theoretical knowledge, and deepens the understanding of the Java object memory structure.
- 03 Mar 6 Spring Bean Naming Conventions Spring Bean Naming Conventions
- 04 Mar 5 Guide to Using Spring PropertySource PropertySource is an interface in the Spring Framework that provides a source for properties (configurations). It allows loading and accessing property values within an application, which are typically used to configure the application's behavior.
- 05 Feb 29 Spring Events User Guide Spring events are a mechanism in the Spring framework for implementing a publish-subscribe model event notification mechanism in applications. We can implement simple business decoupling based on Spring events. This article will introduce the usage and relevant examples of Spring Event based on SpringFramework5.3.32 version.
- 06 Jan 11 Implementing Custom Validators in the Spring Framework Implementing Custom Validators in the Spring Framework
- 07 Jan 9 Packaging XML Files into Java Classpath In Java project development, managing resource files such as XML configuration files is a common requirement. Especially when these resource files need to be in the same path as the compiled class files, correctly configuring the project becomes crucial. This article explores how to package XML files into the Java classpath in Maven projects and IntelliJ IDEA.
- 08 Jan 8 Bean Annotation in the Spring Framework In the Spring Framework, the @Bean annotation is a powerful tool used for defining and configuring Beans. However, effectively using the @Bean annotation requires understanding its advanced properties and limitations. This article aims to comprehensively analyze the advanced properties of the @Bean annotation and discuss its key limitations to ensure the robustness and effectiveness of Spring applications.
- 09 Jan 6 Spring Bean Instantiation Techniques Spring Bean Instantiation
- 10 Jan 6 Spring Bean Singleton and Prototype Spring Bean Singleton and Prototype
- 11 Jan 4 New Features in Java 17 New features in Java 17
- 12 Jan 4 Spring BeanDefinition Usage Guide In the Spring framework, BeanDefinition is a core interface used to define the configuration information of a bean. It includes various property settings, constructor arguments, other special configurations, and the actual implementation class of the bean.
- 13 Jan 3 Maven Dependency Scopes Introduction to Maven dependency scopes
2023
05- 14 Dec 29 ByteBuffer clear() Method vs compact() Method The buffer.compact() and buffer.clear() are two different methods for buffer operations in Java NIO, with distinct functionalities and behaviors.
- 15 Nov 12 ThreadLocal Usage Guide ThreadLocal is used to maintain thread-local variables in a multi-threaded environment. It provides a simple mechanism that allows each thread to independently access and modify its own local copy of a variable without interfering with the copies of other threads.
- 16 Nov 9 Guide to Using Java Thread Pools A Java thread pool is a mechanism for managing and reusing threads. It consists of a set of pre-created threads that can be repeatedly used to execute tasks, eliminating the need to create and destroy threads for each task.
- 17 Nov 2 The Ultimate Guide to Using volatile in Java In Java, volatile is a keyword used to ensure memory visibility and prevent reordering issues in multi-threaded applications.
- 18 Oct 17 How to Properly Stop a Java Thread How to Properly Stop a Java Thread