Chapter 8 SpringBoot index monitoring

1 SpringBoot Actuator 1.1 INTRODUCTION In the future, after every micro service is deployed on the cloud, we need to monitor, track, audit and control it. SpringBoot extracts the actor scenario, so that we can quickly reference each micro service to obtain production level application monitoring, audit and other functions. <dependency> ...

Posted by Dtonlinegames on Fri, 04 Feb 2022 15:01:07 +0100

Spring Security role based authorization example

This guide shows you how to Spring Security Configure role-based authorization in. To use Spring Security authorization, we must override and authorize each requested method according to the logged in user role. configure(HttpSecurity http)WebSecurityConfigurerAdapter What will we build In this example, we will create a Spring Boot appli ...

Posted by Fabis94 on Fri, 04 Feb 2022 13:08:43 +0100

[MyBatis Plus 3.5.1] 2. CRUD extension: automatic filling, optimistic locking, paging query, logical deletion [Spring Boot environment]

1,Insert 1) Insert test @Test void testInsert(){ User user = new User(); user.setName("tuwer"); user.setAge(8); user.setEmail("abc@qq.com"); // id will be generated automatically int res = userMapper.insert(user); System.out.println(res); System.out.println(user); } 2) Primary key policy @TableId ...

Posted by poirot on Fri, 04 Feb 2022 12:45:53 +0100

Static and dynamic agent mode

Static / dynamic proxy mode Why learn the agent mode? Because the underlying mechanism of AOP is dynamic agent! Agent mode is divided into static agent and dynamic agent Before learning aop, we should first understand the agent mode! 1. Static agent 1.1 static agent project structure 1.2 taking renting as an example, static ...

Posted by PGTibs on Fri, 04 Feb 2022 12:08:30 +0100

Spring ----------- DI based on XML

1, Injection classification After the bean instance calls the parameterless constructor to create the object, it needs to initialize the properties of the bean object. Initialization is done automatically by the container, which is called injection. According to different injection methods, there are two common types: set injection and s ...

Posted by mrneilrobinson on Fri, 04 Feb 2022 11:11:16 +0100

Spring AOP core source code analysis takes you into the world of AOP

Title 1-5 of this article will use the knowledge of title 6: an introduction to how to view the source code of dynamically generated proxy classes. If you are interested, you can take a look at the short video! 1. Spring AOP overview AOP, aspect oriented programming, is a programming idea and abstraction. AspectJ and Spring AOP implement ...

Posted by oscar2 on Fri, 04 Feb 2022 09:22:27 +0100

[source code] Spring source code parsing IOC container_ ClassPathXmlApplicationContext start

Spring source code collection: Spring source code analysis (I) IOC container_ BeanDefinition and container loading preface Before we start to analyze the Spring source code, we need to do a few preparations. What we want to analyze in this chapter is to use ClassPathXmlApplicationContext to read the xml configuration file and start ...

Posted by vcodeinfotec on Thu, 03 Feb 2022 20:51:33 +0100

Springboot 2 Foundation - request parameter processing and principle

Springboot 2 Foundation - request parameter processing and principle tags: Spring Boot2021 Shang Silicon ValleyLei Fengyang categories: Static file configurationPrinciple of static file configurationWelcome page and custom FaviconPrinciple of Rest form requestRequest mapping principleUse and principle of various parameters Section I ...

Posted by sanchan on Thu, 03 Feb 2022 19:46:20 +0100

Data processing and jump of spring MVC learning 04

review Implementation steps of developing spring MVC with annotations: Create a new web projectImport related jar packagesWrite web XML, register DispatcherServletWrite spring MVC configuration fileThe next step is to create the corresponding control class, controllerFinally, improve the correspondence between the front-end view and the contr ...

Posted by stolzyboy on Thu, 03 Feb 2022 15:48:02 +0100

Spring source code - IOC part - how spring solves Bean circular dependency [6]

Experimental environment: spring-framework-5.0.2,jdk8,gradle4.3.1 Spring source code - IOC part - container introduction [1] Spring source code - IOC part - container initialization process [2] Spring source code - IOC part - Xml Bean parsing and registration process [3] Spring source code - IOC part - Custom IOC container and Bean parsing r ...

Posted by zeezack on Thu, 03 Feb 2022 15:44:43 +0100