Learning of Spring Boot Starter
Learning of Spring Boot Starter
This tutorial is based on the black horse programmer Java Pinda general permission project, BiliBili link: https://www.bilibili.com/video/BV1tw411f79E?p=6
Spring Boot greatly simplifies the initial construction and development process of the project, which are completed through the starter provided by Spring Bo ...
Posted by myanavrin on Sat, 15 Jan 2022 16:54:30 +0100
Raytheon springboot notes
Raytheon SpringBoot learning notes
Tip: there may be typos in the notes while watching the video. Please forgive me. Video address: https://www.bilibili.com/video/BV19K4y1L7MT?p=86&spm_id_from=pageDriver# 1, Background of the times
1. Microservice Era
Microservices are an architectural style An application is split into a group of smal ...
Posted by hdpt00 on Sat, 15 Jan 2022 13:38:07 +0100
Principle of automatic configuration in SpringBoot and making JAR package that can be assembled automatically
In SpringBoot, classes with certain conditions will be automatically assembled into a Bean in the container. Here, you need to know about configuration classes: the classes wrapped by the following three annotations are configuration classes:
@SpringBootApplication@SpringBootConfiguration@Configuration
Personally, the Configuration class ...
Posted by monkuar on Sat, 15 Jan 2022 02:29:47 +0100
How to write a custom springboot starter component
1. Write in front
Although some mainstream frameworks now basically have ready-made Springboot starter packages for us to quickly integrate into our Springboot project, this will make us rely too much on this method and only use it, but we don't know how to implement the bottom layer, and we will be at a loss in case of problems. Therefore, wr ...
Posted by vargadanis on Fri, 14 Jan 2022 09:34:09 +0100
Spring Security Learning Notes
SpringSecurity
1, Overview
Official website: https://spring.io/projects/spring-security SpringSecurity official websiteSpring security is a security framework based on authentication and authorization developed by spring companyAuthentication: login processAuthorization: grant corresponding operation permissions during login
General permi ...
Posted by Bill_Draving on Fri, 14 Jan 2022 02:16:47 +0100
Learning Java generics
Although I have written Java code for some time, I still can't figure it out and give up selectively as long as I see generics. However, I found that generics are used in many places when looking at the code of the company leaders today, so I'll sort out the generics I understand today.
What is generics
generic programming is a style or pa ...
Posted by kjtocool on Thu, 13 Jan 2022 21:28:22 +0100
spring boot project integrates mybatis plus to adapt multiple data sources + reflection to obtain annotation data
spring boot project integrates mybatis plus to adapt multiple data sources + reflection to obtain annotation data
Many times, our projects may not use a database or a type of database. According to the business, we can be divided into the following types: single database, single data source, multi database, single data source, multi database, ...
Posted by excl209 on Thu, 13 Jan 2022 21:15:31 +0100
6 SpringBoot Web development - exception handling
6.1 default rules
1. By default, Spring Boot provides / error mapping to handle all errors.
2. For the machine client, it will generate a JSON response, which contains the details of error, HTTP status and exception messages;
For the browser client, respond to a "whitelabel" error view and render the same data in HTM ...
Posted by dape2009 on Thu, 13 Jan 2022 14:05:37 +0100
springboot series 03: database operation and front-end rendering
Database operation
pom.xml import module:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</de ...
Posted by neox_blueline on Thu, 13 Jan 2022 12:10:27 +0100
Spring Boot basic configuration
1, Do not use spring boot start parent
Although spring boot starter parent is convenient, readers generally need to use the company's own parent when developing micro service projects or multi module projects in the company. At this time, if they want to uniformly manage the project dependent versions, they need to use dependency management. A ...
Posted by andremta on Thu, 13 Jan 2022 08:38:26 +0100