Detailed explanation of the function and usage of static in Java
1.1 overview:
Static is a static modifier. What is a static modifier? As we all know, any variable or code in the program is stored by the system automatically allocating memory during compilation, and the so-called static means that the memory allocated after compilation will always exist, and this space will not be released until the program ...
Added by libertyct on Tue, 04 Jan 2022 13:22:12 +0200
SpringBoot global exception handling Json + template page
Article reference
spring-boot-demo-exception-handler
github jump
We will encounter many exceptions in our project. We should catch exceptions in time, but inevitably, there will be many unexpected exceptions. Therefore, we should customize the global exceptions and deal with these exception information uniformly
1. Project construct ...
Added by thefreebielife on Tue, 04 Jan 2022 12:29:06 +0200
SpringBoot learning notes 11 web reactive web application
Based on the official spring documentation, the official address is: Spring Boot_Web
Spring Boot is very suitable for web application development. You can create a self-contained HTTP server using embedded Tomcat, Jetty, Undertow, or Netty. Most web applications use the Spring Boot starter web module to start and run quickly. You can also ch ...
Added by grungefreak on Tue, 04 Jan 2022 07:47:23 +0200
Why doesn't Spring Boot need to install additional Tomcat?
When I first came into contact with Spring Boot, most children should be as curious as me:
Why doesn't Spring Boot need to install additional Tomcat?
Why on earth? Let's start today's journey with curiosity.
open Previous section We built the tobebeter javaer project and found POM XML file, you can see a parent attribute in it. The code ...
Added by svgk01 on Tue, 04 Jan 2022 05:15:43 +0200
2021/12/27 Journal Development springboot + vue + mybatis Cotton Sugar English Project Day06
Rear part
Completed the system user add delete change check function
controller
//Get all users by querying criteria
@RequestMapping("/getAllAdminUser")
public ResultObj getAllAdminUser(@RequestParam(required=false,defaultValue="",name = "username") String username,
@RequestParam(required=fa ...
Added by roach on Tue, 04 Jan 2022 03:07:08 +0200
Spring Boot: the Web project is deployed to external tomcat deployment in the form of War package
Spring boot projects are usually packaged as jar s and can be run directly, which is relatively convenient. However, recently, the project needs to package the springboot project into a war and run it in a separate tomcat. There are still many things to pay attention to.
1. Inherit SpringBootServletInitializer
For external container deploymen ...
Added by powlouk on Tue, 04 Jan 2022 02:10:06 +0200
Imitating mybatis, OpenFeign implements the springboot custom scanning interface and injects the proxy class
explain
When you use mybatis or openFeign, you only define an interface class without an implementation class. You can inject the interface into the service and call the method return value. An interface has no implementation class. Why can it be instantiated and handed over to spring management. How is mybatis and OpenFeign implemented? Look ...
Added by chet139 on Mon, 03 Jan 2022 23:51:34 +0200
Spring Boot: Spring Boot scheduled task
In the actual project development work, we often encounter the need to do some scheduled tasks. Then, how is it implemented in Spring Boot?
Add dependency In POM You only need to introduce the dependency of spring boot starter in the XML file:
Code listing: spring boot scheduler / POM xml
Understand the source code + VX: 445909108
Java code ...
Added by n_wattam on Mon, 03 Jan 2022 21:00:34 +0200
[Spring Boot Series 2] still have a headache for configuration file annotation? I'll take you all!
Before explaining the SpringBoot configuration file, let's first learn the relevant annotations for reading the configuration file. This article will take you through all of them!
preface
Originally, I wanted to explain the Configuration file of SpringBoot, but a bunch of annotations in it made me feel that they are almost the same, su ...
Added by allistera on Mon, 03 Jan 2022 19:31:39 +0200
Hand-held instructions for using MyBatisPlus
All content is a video recording of madness teacher's station B MyBatisPlus Complete Tutorial B-Station Video for Crazy Java
brief introduction
MyBatis-Plus (opens new window) (MP) is an enhancement tool for MyBatis (opens new window). On the basis of MyBatis, only enhancements are made and no changes are made to simplify development and incr ...
Added by nonso on Mon, 03 Jan 2022 10:13:19 +0200