Summary of common annotations for SpringBoot
catalogue
@SpringBootApplication
Spring Bean related
@Autowired
@Component,@Repository,@Service, @Controller
@RestController
@Scope
@Configuration
Handling common HTTP request types
GET request
POST request
PUT request
DELETE request
PATCH request
Front and rear end value transmission
@PathVariable and @ RequestParam
@RequestBod ...
Added by Spectre on Sun, 06 Mar 2022 07:32:47 +0200
springboot integration jpa project entry level demo
springboot integration jpa project entry level demo
preface1, Create an empty boot project2, Prepare the database, mainly MySQL3, Import dependency4, Generate JPA entities5, JPA basic notes6, JPQL and EntityManager7, Configuration file8, demo package
preface
Simple basic entry level, no fragrance if you have a foundation!
1, Create an empty ...
Added by phpmoron on Sat, 05 Mar 2022 17:46:11 +0200
[java framework] SpringBoot--SpringBoot implements asynchronous, email and scheduled tasks
1.SpringBoot integration task mechanism
1.1. Spring boot implements asynchronous methods
Daily development involves many interactive responses between the interface and the back-end, which are not synchronous. Spring boot provides us with an annotation method to implement asynchronous methods. Make the request response of the front end and th ...
Added by duvys on Sat, 05 Mar 2022 16:09:27 +0200
SpringBoot integrates JWT to realize login verification
1 Definition
The full name of JWT is JSON Web Token, which is the most popular cross domain authentication solution at present. JWT is an open standard based on JSON, which is designed to transfer declarations between network application environments.
This information can be verified and trusted because it is digitally signed. JWT can sign wi ...
Added by SnakeFox on Sat, 05 Mar 2022 13:56:47 +0200
Implement interface idempotent SDK components based on springboot starter
1, Overview
(1) Idempotent definition
1. Idempotent definition in Mathematics
In programming, the characteristic of an idempotent operation is that the impact of any multiple execution is the same as that of one execution. Idempotent functions, or idempotent methods, refer to functions that can be executed repeatedly with the same parameters ...
Added by FijiSmithy on Sat, 05 Mar 2022 10:27:49 +0200
The old question: how to customize the starter with one click in Spring Boot?
Spring Boot starter
We know that Spring Boot greatly simplifies the initial construction and development process of the project, which are completed through the starter provided by Spring Boot. Pinda general permission system is developed based on Spring Boot, and some basic modules are starters in essence, so we need to have a comprehensive a ...
Added by the apprentice webmaster on Sat, 05 Mar 2022 10:00:48 +0200
Microservice notes 02
01. Hystrix circuit breaker
1. General
Problems faced by distributed systems
Problems faced by distributed systems Applications in complex distributed architecture have dozens of dependencies, and each dependency will inevitably fail at some time.
Service avalanche
When calling between multiple microservices, suppose that microse ...
Added by BrandonE97 on Sat, 05 Mar 2022 09:21:08 +0200
Conclusion of Spring boot integrated learning 1.0: exception handling, integration of Mybatis, transaction, cache, JPA, dynamic log, RabbitMq, sending mail, background operation and deployment
https://blog.didispace.com/spring-boot-learning-1x/
1. Unified exception handling of application
Spring Boot provides a default mapping: / error. When an exception is thrown during processing, it will be transferred to the request for processing, and the request has a global error page to display the exception content.
Access a nonexistent U ...
Added by mizz key_me on Sat, 05 Mar 2022 09:12:53 +0200
xml configuration of SpringBoot-19-Mybatis
xml configuration of SpringBoot-19-Mybatis
In the previous chapter, we have briefly introduced the basic operations of addition, deletion, modification and query of mybatis. The addition, deletion, modification and query of basic (single table) can be implemented according to. If it is slightly more complex, we need to use the xml format of my ...
Added by paulmo on Sat, 05 Mar 2022 08:02:53 +0200
Microservice notes 01
Draft, need post-processing
01. Micro service architecture
What is micro service?
Microservice architecture is an architecture model. It advocates dividing a single application into a group of small services, which coordinate and cooperate with each other to provide final value for users. Each service runs in its own independent process ...
Added by Brit on Sat, 05 Mar 2022 07:35:07 +0200