Java day17: multithreading (the last knowledge lesson of Java SE)

1, Program, process and multitasking A program is a collection of codes that describe and operate data. It is a script executed by an application program. Process is an execution process of a program and the basic unit for the system to run the program. The program is static and the process is dynamic. A system running a program is a process ...

Posted by lemonpiesaregood on Sat, 25 Dec 2021 15:18:07 +0100

Spring MVC unified exception handling

Spring MVC unified exception handling In spring MVC application development, whether it is the operation of the underlying database, or the operation of the business layer or the control layer, it is inevitable to encounter all kinds of predictable and unpredictable exceptions to deal with. If each process needs to handle exceptions separately ...

Posted by stevehaysom on Sat, 25 Dec 2021 06:00:53 +0100

Annotation and reflection

annotation Annotation is a new technology introduced from JDK 5.0effect: 1. It is not the program itself, but the program can be explained (this is no different from the comment) 2. It can be read by other programs (such as compiler, etc.)Format of Annoation: Annotations exist in the code as "@ annotation name". You can also add ...

Posted by spacee on Sat, 25 Dec 2021 01:57:08 +0100

Spring 5 framework learning

preface: This article is my first-order notes on learning the spring 5 framework from Shang Silicon ValleyAfter learning, improve and understand yourself through later changes. Personally, I think this article can more clearly and easily understand the relevant knowledge of getting started with spring 5.The code part of the article interce ...

Posted by Fluoresce on Fri, 24 Dec 2021 07:46:11 +0100

Mybatis integrates with spring and Aop integrates the pagehelper plug-in

Objectives: Mybatis and spring integrationAop integration pagehelper plug-in 1, Mybatis and spring integration Comparison of hibernate and spring integration 1. Import pom dependencies 1.1 add spring related dependencies (5.0.2.RELEASE)        spring-core        spring-beans        spring-context        spring-orm        spr ...

Posted by udendra on Tue, 21 Dec 2021 23:33:07 +0100

Java Network Shop Project SpringBoot+SpringCloud+Vue Network Shop (SSM front-end and back-end separation project) Thirteen (Feign interface call best implementation)

1. Create a search service (1) Create a module: (3) Introducing dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0 ...

Posted by ashii on Sun, 19 Dec 2021 23:36:28 +0100

Java talk about throws and try Will the subsequent code of several cases of catch execute (ParseException)

background The following describes ParseException as an example. import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class MyException { public static void main(String[] args){ SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); Date date = sdf.parse("2021-0829"); ...

Posted by maplist on Sat, 18 Dec 2021 15:21:21 +0100

Handwritten spring MVC framework

1.Spring The operation process of MVC is as follows.   Let's assume this scenario: DispatcherServlet is the boss in the MVC scene, and he does it himself. He has to review and approve everything. That day, he received a user request asking him to give a web page. He immediately gave his deputy handler mapping and said, "Xiao Liu, lo ...

Posted by SoccerGloves on Fri, 17 Dec 2021 15:02:46 +0100

In the era of saas craze, workflow seems to be a professional quality

preface Now more and more projects begin to use workflow to meet their daily work. Today, let's take a look at the workflow of Activiti. Let's start with BPMN painting Environment installation BPMN documents about processes are mainly integrated through eclipse development tools. The idea is mainly painted by actiBPM, but actiBPM is no long ...

Posted by shwanky on Sun, 12 Dec 2021 09:34:18 +0100

Dynamic proxy for Spring learning 10

preface advantage It can make the operation of real characters more pure! Don't pay attention to some public businessThe public business is handed over to the agent, which realizes the division of businessWhen the public business is expanded, it is convenient for centralized management Disadvantages: A real role will produce an agent, doubl ...

Posted by DarkWater on Sun, 12 Dec 2021 00:12:57 +0100