Spring Boot system learning
History of Spring frameworkSpring1.x EraIn spring 1 In the X era, bean s are configured through xml files. With the continuous expansion of projects, xml configuration needs to be divided into different configuration files, and frequent switching between java classes and xml configuration files is required.Spring2.x EraWith the annotation suppo ...
Posted by perezf on Wed, 16 Feb 2022 14:25:40 +0100
Power node - mother Wang Springboot tutorial Thymeleaf template engine
Chapter 9 Thymeleaf template engineOfficial download addressPower node springboot dataVideo viewing addresshttps://www.bilibili.com/vide...Thymeleaf: it is a template technology developed in java and runs on the server side. Send the processed data to the browser.The template works as a view layer. Displays the of the data. Thymeleaf is based o ...
Posted by sweyhrich on Tue, 15 Feb 2022 10:47:27 +0100
(Docker Nginx) Spring boot+Vue front and rear end separate deployment detailed full version
Brief description: Spring boot+Vue is deployed in the front and rear end of the project separately, mainly in the form of docker container deployment.
Spring boot project deployment: build mysql environment with docker + build project environment with docker.
Vue project: use docker to start nginx server proxy deployment.
1.SpringBoot projec ...
Posted by madavies on Tue, 15 Feb 2022 10:38:38 +0100
Springboot MDC + logback for log tracing
1, Introduction to MDC
MDC (Mapped Diagnostic Contexts) maps diagnostic contexts. This feature is a function provided by logback to facilitate logging under multi-threaded conditions. Some applications use multithreading to process requests from multiple users. During the use of a user, there may be multiple different threads to process. A typ ...
Posted by robot43298 on Tue, 15 Feb 2022 06:55:24 +0100
How does Spring Boot monitor SQL operation?
Today, I want to talk about the monitoring function in Druid.
Druid database connection pool is believed to have been used by many small partners. Personally, I feel that Druid is a relatively successful open source project of Alibaba. Unlike Fastjson, Druid has always been excellent in all aspects. It has complete functions and is easy to use ...
Posted by saint959 on Tue, 15 Feb 2022 05:03:24 +0100
springboot auto scan added BeanDefinition source code analysis
1.
During springboot startup, the bean definitions to be loaded will be collected and added to BeanFactory as BeanDefinition objects.
Since there are only getBean and other methods to obtain bean objects in BeanFactory, adding BeanDefinition to BeanFactory is through void registerBeanDefinition(String beanName, BeanDefinition beanDefinitio ...
Posted by amit.patel on Tue, 15 Feb 2022 04:19:00 +0100
@Scheduled scheduled tasks
In the development, we sometimes encounter the demand of regular push, such as regular push, regular email and so on. SpringBoot has built-in timing tasks for us. We only need an annotation to enable timing for our use.Start scheduled taskAdd the @ enableshcheduling annotation in the entry class LogApplication. After adding the annotation, Spri ...
Posted by thepeccavi on Mon, 14 Feb 2022 11:29:42 +0100
SpringBoot integrates Prometheus to realize application monitoring
1. Introduction to micrometer
Micrometer provides a general API for performance data collection on the Java platform. Applications only need to use the general API of micrometer to collect performance indicators. Micrometer will be responsible for completing the adaptation with different monitoring systems. This makes it easy to switch the mon ...
Posted by SteveMellor on Mon, 14 Feb 2022 11:18:24 +0100
React JS + Spring Boot REST API example tutorial
In this tutorial, we will use React as the front end and Spring Boot as the back end to create a simple "single page application".
React is used to build a user interface (UI) at the front end.
Spring Boot is very popular in developing RESTful Web services and micro services.
As we all know, React is a JavaScript based librar ...
Posted by doddatika on Sun, 13 Feb 2022 03:02:28 +0100
012springboot Shiro (security framework)
catalogue
Shiro core three objects
Quickstart core:
First Shiro program
hello-shrio
1.pom.xml
2. Write Shiro configuration
log4j.properties
shiro.ini
3,Quickstart
Core:
Shiro integrated in SpringBoot
Environment construction
1.pom.xml
2.index.html
3.MyController
4.ShiroConfig realm object needs to be custom ...
Posted by devxtech on Sat, 12 Feb 2022 17:55:38 +0100