Springboot integrates web related technologies
1, Introduction to spring boot filter Foundation & actual combat
1.1 filter
What is a filter
It is implemented based on Servlet Technology. In short, the filter plays the role of filtering. It helps us filter some specified URLs and do some special processing in the development of web projects
What does the filter mainly achieve ...
Posted by m2babaey on Tue, 08 Feb 2022 07:01:11 +0100
012 expression for springboot thymeleaf
1. Create module
1.1 create SpringBoot web project and use template engine
1. Create module 018-springboot-thymeleaf-expression
Introducing web and template engine
After creation, POM The XML file will have the following dependent coordinates
<dependency>
<groupId>org.springframework.boot</groupId ...
Posted by bearqst on Tue, 08 Feb 2022 05:09:44 +0100
IDEA to quickly create a SpringBoot project
1 objectives
SpringBoot project can be created quickly (without writing any configuration files)Introduction to the basic principles of SpringBootIntroduction and use of SpringBoot configuration fileSpringBoot integrates Mybatis, Redis and timerSpring boot sends Http requestTesting in SpringBootSpring boot packaged deployment
2 create a Spring ...
Posted by catlover on Tue, 08 Feb 2022 00:16:26 +0100
Building nacos based on Spring Cloud Alibaba
relationship
Spring Boot is a framework. The various components are gathered together to facilitate the rapid development of web applications. Spring Cloud is based on Spring Boot and defines a set of specific components, which can facilitate the development of microservice engineering. Spring Cloud Alibaba has made some adjustments on the bas ...
Posted by MikeL7 on Tue, 08 Feb 2022 00:05:43 +0100
Several methods of reading externalized configuration by Spring boot
In this article, we mainly discuss the externalized configuration function of Spring Boot. This function mainly realizes the mutual cooperation with the code through external configuration resources, so as to avoid hard coding and provide the flexibility of application data or behavior changes. This paper mainly records several common operation ...
Posted by RobertPaul on Mon, 07 Feb 2022 07:57:11 +0100
Embedded servlet container of SpringBoot
1. SpringBoot is the default servlet container
The default servlet container of SpringBoot is tomcat, as shown in the following figure:
2. Embedded servlet configuration modification
2.1. Modify through global configuration file
1. You can use server XXX for web service configuration. If there is no server name, it is a genera ...
Posted by schlag on Mon, 07 Feb 2022 04:25:57 +0100
Hot deployment and logging of SpringBoot
1. Hot deployment of devtools in SpringBoot
1.1. What is hot deployment
Hot deployment means that every time we modify some codes and related configurations during development, we don't need to restart the whole system. We just need to wait a few seconds to automatically load the modified things successfully.
1.2. How to enable Spri ...
Posted by jimmyhumbled on Mon, 07 Feb 2022 04:03:53 +0100
Spring Boot Chapter 2 integrating Druid database connection pool
Integrated Druid
Introduction to Druid
A large part of Java programs need to operate the database. In order to improve the performance, they have to use the database connection pool when operating the database.
Druid is a database connection pool implementation on Alibaba's open source platform. It combines the advantages of C3P0, DBCP and o ...
Posted by whitepony6767 on Mon, 07 Feb 2022 02:41:46 +0100
springBoot and Micro Services
Spring
1,Spring
1.1. Introduction:
Spring:spring spring concept: making existing technology easier to use is a hodgepot in itself SSH: Struct2+Spring+Hibernat SSM: SpringMVC+Spring+Mybatis
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
<dependency>
<groupId>org.springframework</gr ...
Posted by JJ2K on Sun, 06 Feb 2022 18:10:15 +0100
Integration between Springboot and various components
@TOC
Conditional annotation in springboot
@Conditional The bean is loaded when a specific condition is triggered
There are many sub annotations under this annotation,
@ConditionalOnClass
package org.springframework.boot.autoconfigure.condition;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java. ...
Posted by finger on Sun, 06 Feb 2022 03:48:02 +0100