Spring 5 from entry to grave: developing with annotations

jdk1.5 start supporting annotations, spring 2 5 start comprehensive direct annotation Preparation: inject attributes by annotation 1. Introduce the context file header into the spring configuration file <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.o ...

Posted by johanafm on Wed, 02 Feb 2022 06:10:49 +0100

Soon, java crawler based on jsoup

preface Python: what? Writing crawler, you actually use java? you 're right! Today, break the routine and write a simple crawler in java. It is mainly based on java. Some functions need crawlers; It's a little late to change the question now, so I have to bite the bullet (no matter how ridiculous the road I choose, I have to finish o(﹏β•₯ ...

Posted by alcedema on Thu, 27 Jan 2022 08:15:58 +0100

[JSP script element] + [page, include, taglib instruction] + [JSP action element: < jsp:include >, < jsp:forward >]

1.JSP script elements: <%% >, <%!% >, <% =% > Java code can be inserted into JSP files, and the writing of these codes needs to follow certain syntax specifications. There are three main types of JSP script elements: JSP Scriptlets: Java code block, such as <% java code (variables, methods, expressions, etc.)% >. I ...

Posted by AV on Thu, 27 Jan 2022 06:47:52 +0100

Dark horse programmer concurrent programming notes -- basic operation and understanding of java threads

3. Basic operation of java process 3.1. Create process Method 1: directly use Thread // The parameter of the constructor is to assign a name to the thread. It is recommended to give a name to the thread (setName() is also acceptable) Thread t1 = new Thread("t1") { @Override // The task to be executed is implemented in the run method publi ...

Posted by jk11uk on Thu, 27 Jan 2022 05:38:45 +0100

spark's basic Scala syntax tutorial II, operators and branch statements (idea version)

πŸ“‹ preface πŸ“‹ πŸ’ Blog home page: Red eye Aromatherapy_ CSDN blog - big data, computer theory, MySQL BloggerπŸ’ ✍ This article was originally written by Yu Xia [Hongmu aromatherapy] and was first launched in CSDN ✍ πŸ€— Biggest wish in 2022: [serve millions of technical people] πŸ€— πŸ’ Initial environment address:[ spark environment construct ...

Posted by liljim on Wed, 26 Jan 2022 20:14:12 +0100

Overview of several states of JVM built-in lock synchronized

Use of built-in lock Generally, the java built-in lock we mentioned refers to the lock implemented by the synchronized keyword provided by the JVM. Here is a simple example: public class SynchronizedVariableTest1 { public static void main(String[] args) throws InterruptedException { SynchronizedVariableTest1 test = new Synchroniz ...

Posted by ChaosXero on Mon, 24 Jan 2022 01:10:43 +0100

Review the object-oriented of java basic syntax

This article will review the object-oriented features in java Basic concepts Object oriented organizes code in the form of classes and encapsulates data in the form of objects Three characteristics of object-oriented encapsulation inheritance polymorphism There are objects first and then classes. Objects are concrete things and concrete insta ...

Posted by PhaZZed on Sun, 23 Jan 2022 21:45:57 +0100

[ crazy victory theory ] MybatisPlus notes sorting

MybatisPlus MyBatis-Plus (opens new window) (MP) is a MyBatis (opens new window) On the basis of MyBatis, the enhancement tool is only enhanced without change. It is born to simplify development and improve efficiency. characteristic No invasion: it is only enhanced without change, and its introduction will not affect the existin ...

Posted by MuseiKaze on Sun, 23 Jan 2022 18:10:17 +0100

Advanced Java programming knowledge - 10. IO flow

10.1 File class java. io. An object of the file class that represents a file or file directory Constructor creates a File instance: File(String filePath)File(String parent, File child)File(File parent, String child) Path separator: windows and DOS systems use "\" by default UNIX and URL s are represented by "/&quo ...

Posted by svenski on Sat, 22 Jan 2022 19:34:47 +0100

Employee management system document [full details of basic function development]

1. Home page implementation 1.1. Access index Because the static files under the template package cannot be accessed directly, they need to be accessed indirectly; View jump is required; Create a new config package in the main program statistics directory to store your own configuration classesCreate your own configuration class MyMvcCon ...

Posted by zszucs on Sat, 22 Jan 2022 06:43:05 +0100