Getting started with the Reflect class

Chapter 16 reflection 16.1 class loading Class life cycle in memory: load – > use – > unload 16.1.1 loading process of class When a program actively uses a class, if the class has not been loaded into memory, the system will initialize the class through three steps: loading, connecting and initialization. If there is n ...

Added by clodagh2000 on Mon, 29 Nov 2021 06:56:40 +0200

Simple mail sending [springboot]

Before learning java web, sending mail is relatively cumbersome. You can see the implementation of Java Web Java web mail sending In spring boot, the code is encapsulated. It only needs a few words of code to implement, from sender to sender ① First look at simple mail sending 1. Import mail dependency <dependency> & ...

Added by bokerfest on Mon, 29 Nov 2021 02:56:31 +0200

Session management of spring security

1, Session timeout Configure the session timeout, which is 30 minutes by default, but the session timeout in Spring Boot is at least 60 seconds. After the session timeout, jump to the login page by default #session settings #Configure session timeout server.servlet.session.timeout=60 Customize the address after session timeout, set sessio ...

Added by 22Pixels on Sat, 27 Nov 2021 05:01:42 +0200

Spring MVC framework learning record 3 response mode

Data response mode Spring MVC's response to front-end requests can be divided into two categories and four types Page Jump For front-end requests, page Jump is realized by forwarding or redirection, and data return is supported Return string @RequestMapping("/say1") public String say1() { System.out.println("Meow"); return "success"; } ...

Added by Canadiengland on Fri, 26 Nov 2021 22:03:53 +0200

Reservation Management_ Reservation Settings_ Calendar Display Reservation_ set information

Chapter IV. Calendar Display Reservation Setup Information 1. Reservation Setup Requirements Analysis Previously, we have completed the management of free travel, group travel, package management and so on. Next we need to make an appointment, which is actually to set the maximum number of travel appointments for each day. Customers can ma ...

Added by Gruzin on Fri, 26 Nov 2021 20:56:24 +0200

Explanation of spring cloud gateway basic operation in 2021

Code address of this series: github.com/JoJoTec/spr... preface Next, we will enter another big module on our upgrade path, namely the gateway module. In the gateway module, we abandoned zuul that has entered the maintenance state and selected Spring Cloud Gateway as the internal gateway. The reasons for choosing Spring Cloud Gateway ...

Added by gioahmad on Fri, 26 Nov 2021 04:02:14 +0200

SpringMvc - full annotation development

SpringMvc - full annotation development Use configuration classes instead of web.xml, SpringMvc.xml, Spring.xml. first Create a new module, introduce dependency, specify the packaging method war, create webapp directory and WEB-INF directory. then Create a WebConfig class, inherit the AbstractAnnotationConfigDispatcherServletInitializer cl ...

Added by jiehuang001 on Fri, 26 Nov 2021 01:22:17 +0200

SpringBoot implements dynamic addition, deletion, start and stop timing tasks

In the spring boot project, you can implement Scheduled tasks through the @ enableshcheduling annotation and @ Scheduled annotation, or through the scheduleconfigurer interface. However, these two methods cannot dynamically add, delete, start and stop tasks. To realize the function of dynamic addition and deletion of start and stop scheduled t ...

Added by sbourdon on Thu, 25 Nov 2021 03:44:31 +0200

Spring certified China Education Management Center - Spring Data MongoDB tutorial 6

Original title: Spring certified China Education Management Center - Spring Data MongoDB tutorial 6 (content source: Spring China Education Management Center)JSON schema typeThe following table shows the supported JSON schema types:Untyped is a generic type inherited by all typed schema types. It provides all schema properties for untyped typed ...

Added by JonathanAnon on Wed, 24 Nov 2021 12:55:16 +0200

Analysis of the whole process of SpringBoot application accessing Prometheus

Prometheus: Prometheus is an open monitoring solution. Users can easily install and use Prometheus and expand it The following will implement the whole process of a SpringBoot application accessing Prometheus 1.2 installation Linux Installation Download package specified on the official website: https://prometheus.io/download/ Download loca ...

Added by benson on Wed, 24 Nov 2021 09:00:32 +0200