SpingMVC learning - Controller&@RequestMapping&RestFul

SpingMVC learning- Controller The controller implementation mode is interface or annotation, which is generally implemented by annotation. It is responsible for parsing the user's request, transforming it into a model and returning it to the view parser The following four annotations are equivalent @Component component @Service layer @Contr ...

Added by m7_b5 on Tue, 01 Mar 2022 11:57:26 +0200

SpringBoot introductory tutorial, thoroughly understand these more than 90% of Java interviewers

Power node Mr. Wang he's SpringBoot introductory series of courses, easy to understand, based on SpringBoot 2 4 version explanation.Start with the details and explain POM in each case Important dependencies in XML, followed by application configuration file, and finally code implementation. Let you know why, gradually let you master the automat ...

Added by adamwhiles on Tue, 01 Mar 2022 10:41:32 +0200

Configuring and using servlets in IDEA

Configuring and using servlets in IDEA Crazy God says Java 1. Introduction to Servlet Servlet is a technology for sun company to develop dynamic websun provides an interface called Servlet in these API s. If you want to develop a Servlet program, you only need two steps: Write a class to implement the Servlet interfaceDeploy the deve ...

Added by buluk21 on Tue, 01 Mar 2022 10:27:52 +0200

How many of the three Spring Boot development tools have you used?

1, Springboot dedvetoolsIt is a tool that enables SpringBoot to support hot deployment. The following is the referenced methodOr check the following configuration directly when creating the project:Either add the following dependencies to the springBoot project:<dependency> <groupId>org.springframework.boot</groupId> & ...

Added by jimmygee on Tue, 01 Mar 2022 09:46:01 +0200

[Java] reflection, enumeration, Lambda expression

1, Reflection 1 Definition The reflection mechanism of Java is to know all the properties and methods of any class in the running state; For any object, we can call any of its methods and properties. Since we can get it, we can modify some type information; This function of dynamically obtaining information and dynamically calling object ...

Added by panic! on Tue, 01 Mar 2022 09:22:31 +0200

Java language practice answer 03

1. Which of the following cannot be used to handle thread safety synchronized keywordvolatile keywordLock classtransient keyword Correct answer D answer analysis Let's take a look at the function of the transient keyword The variable cannot be serialized Variables modified by transient cannot be serialized Cannot be read after deserialization ...

Added by Gregghawes on Tue, 01 Mar 2022 09:18:21 +0200

Study notes on factory mode of 23 design modes

What is the factory model? As the name suggests, factory is to create products. According to whether the products are specific products or specific factories, it can be divided into simple factory mode and factory method mode. According to the degree of abstraction of factories, it can be divided into factory method mode and abstract factory m ...

Added by metuin on Tue, 01 Mar 2022 09:16:14 +0200

JVM virtual machine detailed class loading subsystem

Detailed explanation of JVM virtual machine (class II) loading subsystem 1. Overview of memory structure 💡 Note: only the HotSpot virtual machine is available in the method area, but neither J9 nor JRockit 2. Class loader subsystem Functions of class loader subsystem: The class loader subsystem is responsible for loading class ...

Added by jmarcv on Tue, 01 Mar 2022 08:35:56 +0200

Custom annotation for business verification

Parameter verification Business rule verification Code practice Custom annotation Implement business verification rules use test Summary In daily interface development, in order to ensure the stability and security of the interface, we generally need to deal with two kinds of verification in the interface logic: Parameter verif ...

Added by Tylor_Famous on Tue, 01 Mar 2022 07:46:08 +0200

Interviewer: jdk1 8 How is the HashMap capacity expansion rehash algorithm optimized?

This article talks about a common interview question, jdk1 8 How is the HashMap capacity expansion rehash algorithm optimized? As we all know, the bottom layer of HashMap is actually an array. Since it is an array, the inevitable length is fixed, so there must be a problem of capacity expansion. At jd.k1 7 is to double the capacity of the arra ...

Added by az_wraith on Tue, 01 Mar 2022 07:11:59 +0200