Basic - Generic
summary
A collection can store objects of any type. After an Object is stored in a collection, it is promoted to Object type. When I take an Object out of a collection, I need to perform mandatory transformation to operate on the Object.
public static void main(String[] args) {
ArrayList list ...
Posted by jacomus on Thu, 18 Jun 2020 20:27:48 -0700
Docker image SpringBoot Jar package
Docker image SpringBoot Jar package
Preface
Pack Project
Making Docker Mirrors
View and run Docker images
Access Interface
Preface
Let's start with a general process. I'm building a project with SpringBoot, typing it directly into a Jar package, running on port 8082 on Linux, and changing the na ...
Posted by fsumba on Wed, 17 Jun 2020 09:41:31 -0700
Spring Series.A Brief Analysis of AOP Principle
Introduction to using Spring AOP
The two core functions of Spring are IOC and AOP.It's convenient when we use Spring's AOP functionality.You just need to configure it below.
@Component
@Aspect
public class MyAspect {
//PointCut matching methods must be methods of bean s in Spring
//Pointcut s can be defined in the following ways or combined in ...
Posted by nomadrw on Tue, 16 Jun 2020 18:45:04 -0700
Java learning_ 08_GUI programming
Java learning_ 08_GUI programming
GUI programming
1. Introduction
2. Introduction to AWT
2.1 introduction to AWT
2.2 components and containers
2.3Frame
2.4 Panel
2.4.1FlowLayout
2.4.2 BorderLayout
2.4.3 GridLayout
2.4.4 layout exercise
2.5 event monitoring
2.6 graphics
2.7 mouse event adapter
2.8 ...
Posted by varghesedxb on Mon, 15 Jun 2020 20:05:03 -0700
A new understanding of the concurrency modificationexception and strange phenomena in Java collection iterating through the source code
A new understanding of the concurrency modificationexception and strange phenomena in Java collection iterating through the source code
preface
1, Scene settings
2, Accident site
2.1 code throwing exception ConcurrentModificationException
2.2 no error is reported, but the expected result is not achi ...
Posted by javier on Sat, 13 Jun 2020 19:40:08 -0700
[Java] uses reflection to execute the methods specified by Spring container Bean, and supports automatic calling of multiple parameters
catalog
Usage scenarios
objective
Implementation mode
Premise:
thinking
Core class
test method
Source sharing
Usage scenarios
Input the scheduled task into the database (the advantage of this is the visualization of the scheduled task, and the execution time of each task can be modified dynamically), and execute the corresponding method ...
Posted by Chris Val Kef on Sat, 13 Jun 2020 03:06:01 -0700
Deep source analysis and application introduction of Java collection Properties
.
1 overview of properties
public class Properties
extends Hashtable<Object,Object>
Properties, from the collection class of JDK 1.0, ...
Posted by maliskoleather on Thu, 11 Jun 2020 23:31:10 -0700
Java Advanced Programming -- String related classes of common classes String, StringBuffer, StringBuilder
Java provides rich API s for users to develop quickly and efficiently. This blog will introduce the specific usage of String related classes in common classes, including String, StringBuffer, StringBuilder.
catalog:
☑ String class
☑ conversion of String to other types of data
☑ StringBuffer and StringB ...
Posted by Reaper0167 on Thu, 11 Jun 2020 23:23:19 -0700
Java learning notes annotation and reflection, Class class, Class loader, Java Memory Analysis
annotation
Annotation is a technology introduced from JDK 5.0
The role of Annotation:
It's not the program itself, it can explain the program (it's no different from comment)
Can be read by other programs (such as compilers)
Annotation format
Annotation exists in "@ annotation name" ...
Posted by marowa on Wed, 10 Jun 2020 22:43:44 -0700
RocketMQ series environment construction
The basic concepts of RocketMQ are introduced to you in the previous article. In this section, we will introduce environment construction. The most basic thing in RocketMQ is NameServer. Let's see how it is built first.
NameServer
RocketMQ requires an environment above JDK8. Let's check the environment first,
[root@centOS-1 ~]# java -versio ...
Posted by manny on Sat, 06 Jun 2020 01:14:45 -0700