Build a project with maven and configure tomcat to run a servlet
1. Use idea to create an empty maven project and delete the src folder in it, because in the later stage, each module will be established under the new project, and the original src folder is not required. 2. Under the general project, maven is used to introduce the jar package of servlet and jsp, which can be found in( https://mvnrepository.co ...
Added by Reformed on Sat, 05 Mar 2022 07:37:27 +0200
Java project is divided into modules and jar packages
During this time, I received a task, which is to jar the project according to the module. The purpose is:
1. Package according to modules to facilitate upgrading
2. After the module is subcontracted, which module is modified, update the corresponding module separately. There is no need to worry about the abnormal operation of the project due ...
Added by lances on Sat, 05 Mar 2022 05:41:15 +0200
JVM parameters and memory model
1. Why should we optimize the jvm?
In the local development environment, we rarely encounter the need to optimize the jvm, but in the production environment, we may have the following requirements:
The running application is "stuck", the log does not output, and the program does not respond The CPU load of the server suddenly incr ...
Added by DarkHavn on Wed, 23 Feb 2022 13:03:37 +0200
Knowledge of JDBC
1. Concept: Java database connectivity, Java database connection, Java language operation database
JDBC essence: it is actually a set of rules defined by the official (sun company) to operate all relational databases, that is, interfaces. Each database manufacturer implements this interface and provides database driver jar package. We can use ...
Added by Pehape on Mon, 21 Feb 2022 06:58:21 +0200
Several postures of Idea+Maven playing jar package
Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it
target
Our local projects should be released through Jar package or used by others. Today, I recorded the packaging process of the project completed by le idea and maven.
Using Idea+Ma ...
Added by tinyang on Mon, 14 Feb 2022 17:15:47 +0200
Java Agent for bytecode instrumentation
Java Agent for bytecode instrumentation
This article will explain the knowledge of Java Agent in detail, uncover its mystery, help developers understand its dark magic and help us complete more business needs
What is Java Agent
Java Agent, also known as Java probe, provides the function of adding bytecode to existing compiled Java classes, w ...
Added by php_jord on Mon, 14 Feb 2022 03:17:53 +0200
Android Publishing Library (jar/aar) to Maven Central
1, Preface: Since Jcenter has stopped serving, we usually publish the library to Maven Central;Maven Central, like Jcenter, is also a public warehouse. The library published on it can be used by yourself and others; Since Android Studio 4.2, Google has made Maven central a part of gradle
2, Process of Publishing Library (jar/aar) to Maven Cent ...
Added by PlasmaDragon on Sun, 30 Jan 2022 21:32:25 +0200
ClassWriter usage in asm, custom ClassVisitor and enhancer usage instance of cglib
ASM is a popular class library used to read script code in Java. It is used to analyze and convert code based on bytecode layer. In the process of reading and writing, custom logic can be added to enhance or modify the original compiled bytecode. For example, CGLIB uses it to implement dynamic proxy. ASM is designed to generate and transfor ...
Added by R4000 on Fri, 28 Jan 2022 00:17:54 +0200
All JAR packages of JAVA project are packaged, run and deployed as a one-stop solution
1, Scene description
The modular management of parent-child project can solve most scenarios and problems of module version and dependency between modules Using spring boot plug-in for project packaging and deployment can solve 90% of the problems of continuous project integration and deployment In the process of project development, wi ...
Added by jmcneese on Tue, 18 Jan 2022 11:47:18 +0200
Annotation and reflection
01. What is annotation
Annotation is from jdk5 New technologies introduced from 0Function of Annotation
Not the program itself, you can explain the program (this is no different from comments)It can be read by other programs (such as compiler, etc.) Format of Annotation
Annotations exist in the code as @ annotation name. You can also add ...
Added by mattcass on Tue, 04 Jan 2022 13:29:40 +0200