java foundation - Object class
1, toString method in Object class:
java.lang.Object class is the root class in the Java language, that is, the parent class of all classes.
All method subclasses described in it can be used. When an Object is instantiated, the final parent class is Object.
To create a Person class:
public class Person {
private String name;
private ...
Posted by Hayce on Sun, 20 Feb 2022 19:16:19 +0100
Deep understanding of JVM -- class loading and bytecode Technology
Deep understanding of JVM (VII) -- class loading and bytecode Technology (I)
](https://nyimapicture.oss-cn-beijing.aliyuncs.com/img/20200608151300.png)
1. Class file structure
Get first class bytecode file
method:
Write java code in the text document (the file name is consistent with the class name), and change the file type to javaIn ...
Posted by anujgarg on Wed, 16 Feb 2022 13:12:01 +0100
Understanding JDBC technology is enough to read this article
1. Introduction to JDBC
1. What is JDBC?
2.JDBC writing steps
2. How to Get Database Connections
Preparations: 1. Create a new lib folder under the project 2. Import the jar package into the lib directory 3. Add the imported jar package to the project through Add as library 4. Create related packages and test classes 5. Create ...
Posted by porto88 on Thu, 03 Feb 2022 18:48:20 +0100
[SpringBoot] SpringBoot -- construction and deployment of the project
7. Project construction and deployment
SpringBoot can be embedded with Servlet container, so it is very convenient to deploy. It can be directly packaged into executable Jar package and deployed on the server of Java allowed environment, or packaged into War package and deployed on external Tomcat server.
7.1 Jar deployment
Spring boot ...
Posted by disaster77 on Sun, 30 Jan 2022 22:31:23 +0100
jar calls the dll file and prompts that the specified module cannot be found. Unable to load library
catalogue
Problem description
Solution 1
Solution 2
effect
Supplementary notes
Reference link
Problem description
On the Windows system, the Swing project developed by myself needs to use JNA to call the dll file of the dynamic link library( Java simple system monitoring )After using Maven assembly plugin (jar with dependencies) to for ...
Posted by jlgray48 on Thu, 27 Jan 2022 13:18:10 +0100
Logback Usage Summary
preface
Sorted out the common functions of logback, and recorded some questions in the process of use and the troubleshooting process of problems, so as to prevent yourself from making similar mistakes again. I hope it will be helpful to you passing by.
1, How to use logback
The use of any framework is a three-step process: 1. Impo ...
Posted by RIRedinPA on Thu, 27 Jan 2022 08:10:18 +0100
The simplest method of k8s is to deploy the image from the local cluster (4. Deploy the springboot project for k8s)
prepare
First, prepare the simplest demo and a rest interface. Our goal is to deploy this demo to the k8s cluster and access it. The port exposed here is 8080
Run the jar package locally
Local access
Image packaging
First upload the jar package to a folder on the master Write Dockerfile #create a file
vim Dockerfile
##conte ...
Posted by EXiT on Mon, 24 Jan 2022 20:13:40 +0100
Four days before Spring notes
Spring preschool Foundation
rely on
1. Three elements of dependency composition
1.1 group id
1.2 project name
1.3 version number
2. Relationship between coordinates and local warehouse
Go to the local warehouse according to the coordinates. Find jar file
Here are all paths, pointing to the required files
3. If the dependency ...
Posted by orbitalnets on Sun, 23 Jan 2022 01:05:23 +0100
Automatic assembly of spring 04 bean
Automatic assembly is a way for Spring to meet bean dependencies. Before that, you must manually inject dependencies into beans, otherwise the attribute will be emptyAutomatic assembly: Spring will automatically find the context and automatically assemble properties for the bean
There are three ways to assemble in Spring
Display configuratio ...
Posted by pit on Sat, 22 Jan 2022 21:24:06 +0100
Using Apache Commons Lang
1. Birth background
Because the standard Java library cannot provide enough methods to manipulate its core classes. Apache Commons Lang provides these additional methods and tools.
Lang is Java Lang API provides many helper utilities, especially string operation methods, basic numerical methods, object reflection, concurrency, creation and se ...
Posted by FezEvils on Thu, 20 Jan 2022 11:15:13 +0100